Home » CSS » CSS Attribute Selectors » Question
  1. Which of the following selectors selects any tag with an id attribute set?
    1. *
    2. E#id
    3. .class
    4. #id
    5. None of these
Correct Option: D

Example:#test {color: green;}
/* makes a tag with id=’test’ green */



Your comments will be displayed only after manual approval.