adplus-dvertising
frame-decoration

Question

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

Posted under CSS

Answer: (a).:valid

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?