Home » CSS » CSS Attribute Selectors » Question
  1. Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type
    attributes?
    1. :optional
    2. :invalid
    3. :valid
    4. :required
    5. None of these
Correct Option: C

Example: :valid {color: green;}



Your comments will be displayed only after manual approval.