Q17
Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?
A.
:valid
AnswerB.
:required
C.
:optional
D.
:invalid
Answer: Option A
Solution
Answer: Option A
Solution:
Example: :valid {color: green;}