- A CSS selector that matches an HTML element based on the value of the element’s
id
attribute. The selector consists of a “#” followed by theid
attribute’s value. ID selectors have a higher specificity than attribute selectors.
WebGlossary.info
id
attribute. The selector consists of a “#” followed by the id
attribute’s value. ID selectors have a higher specificity than attribute selectors.