a) E > F b) E F c) E + F d) E ~ F Answer: c
View QuestionWhich of the following selectors selects the specified elements of type E with a particular class value?
a) E.class b) E ~ F c) * d) E, F, G Answer: a Explanation: Example: h1.note ...
View QuestionWhich of the following selectors selects siblings?
a) E.class b) E ~ F c) * d) E, F, G Answer: b Explanation: Example: p ~ ...
View QuestionWhich of the following selectors selects direct descendents?
a) E > F b) E F c) E + F d) E ~ F Answer: a
View QuestionWhich of the following selectors selects any tag with an id attribute set?
a) E#id b) .class c) #id d) * Answer: c Explanation: Example:#test {color: green;} /* makes a ...
View QuestionA similar rule called the ____________ is specified using the plus sign (+) and is used to select elements that would be siblings of each other.
a) class selectors b) attribute selectors c) adjacent-sibling selector d) none of the mentioned Answer: c Explanation: ...
View Question
What will be the output of below mentioned code snippet?
p strong {background-color: yellow;}
What will be the output of below mentioned code snippet? p strong {background-color: yellow;} a) Strong have yellow background
View QuestionThe _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.
a) class b) element c) id d) none of the mentioned Answer: a Explanation: class
View QuestionBy applying an ___________ a style can be applied to just a single tag.
a) class rule b) element rule c) id rule d) none of the mentioned Answer: c Explanation: ...
View Question
What type of selector is used in this case?
p {line-height: 150%;}
What type of selector is used in this case? p {line-height: 150%;} a) class Selectors b) element Selectors c) ...
View Question