Q: Which of the following selector selects all elements of E that have the attribute attr that end with the given value?
Solution: Example: p[title$="!"] {color: red;}
Q: Which of the following selector selects the elements that are checked?
Solution: Example: :checked {color: blue;}
Q: Which of the following selector selects the elements that are the default among a set of similar elements?
Solution: Example: :default {background-color: red;}
Q: Which of the following selector selects an element that has no children?
Solution: none
Q: Which of the following selector selects the elements that are currently enabled?
Solution: Example: input:enabled {background-color:white;}
Q: Which of the following selector selects the element that is the first child of its parent that is of its type?
Solution: Example: strong:first-of-type {font-size:bigger;}
Q: Which of the following selector selects elements that do not match the selector s?
Solution: Example: *:not(h1) {color: black;}
Q: Which of the following selector selects an element if it’s the only child of its parent?
Solution: Example: h1:only-child {color: blue;}
Q: Which of the following selector selects the element that is the target of a referring URI?
Solution: Example: :target{color:red;}
Q: Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?
Solution: Example: :valid {color: green;}
You Have Score    | /10 |