Examveda
Examveda

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

B. :required

C. :optional

D. :invalid

Answer: Option A

Solution(By Examveda Team)

Example: :valid {color: green;}

This Question Belongs to CSS >> CSS Selectors And CSS Files

Join The Discussion

Related Questions on CSS Selectors and CSS Files