Which of the following selector selects an element if it’s the only child of i
Home | Discussion ForumWhich of the following selector selects an element if it’s the only child of its parent?
:root
:nth-oftype(n)
:only-child
none of the mentioned
Answer : C
View More Related Question
1) p {line-height: 150%;}.What type of selector is used in this case?
2) Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?
3) By applying an ___________ a style can be applied to just a single tag.
4) Which of the following selectors selects any tag with an id attribute set?
5) The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.