CSS Selectors MCQ Questions and Answers

Home | CSS | CSS Selectors

This section provide basic question of CSS where we provide lot of objective question

Page: 1/3

1) p {line-height: 150%;}.What type of selector is used in this case?

2) By applying an ___________ a style can be applied to just a single tag.

3) The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.

4)

p strong {background-color: yellow;}

What will happen in this case?

5) A similar rule called the ____________ is specified using the plus sign (+) and is used to select elements that would be siblings of each other.

6) Which of the following selectors selects any tag with an id attribute set?

7) Which of the following selectors selects siblings?

8) Which of the following selectors selects the specified elements of type E with a particular class value?

9) Which of the following selector selects all elements of E that have the attribute attr that end with the given value?

10) Which of the following selector selects the elements that are checked?