ExamVeda
Login
Home
11
Which of the following selector selects an element that has no children?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
12
Which of the following selector selects the elements that are currently enabled?
Discuss
Answer & Solution
Answer: Option C
Solution:
Example: input:enabled {background-color:white;}
13
Which of the following selector selects the element that is the first child of its parent that is of its type?
Discuss
Answer & Solution
Answer: Option A
Solution:
Example: strong:first-of-type {font-size:bigger;}
14
Which of the following selector selects elements that do not match the selector s?
Discuss
Answer & Solution
Answer: Option C
Solution:
Example: *:not(h1) {color: black;}
15
Which of the following selector selects an element if it’s the only child of its parent?
Discuss
Answer & Solution
Answer: Option C
Solution:
Example: h1:only-child {color: blue;}
16
Which of the following selector selects the element that is the target of a referring URI?
Discuss
Answer & Solution
Answer: Option A
Solution:
Example: :target{color:red;}
17
Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?
Discuss
Answer & Solution
Answer: Option A
Solution:
Example: :valid {color: green;}
18
p {line-height: 150%;}.What type of selector is used in this case?
Discuss
Answer & Solution
Answer: Option B
Solution:
These selectors are called element selectors and are simply used as follows:
element-name { /* properties */ }
19
By applying an ___________ a style can be applied to just a single tag.
Discuss
Answer & Solution
Answer: Option C
Solution:
By applying an id rule, a style can be applied to just a single tag. For example, if we name a tag with a unique id attribute as follows
<tag id="id-value">Affected Text</tag>
20
The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board