ID Selector

Term side of the Card
Topic: Selectors
Unit title: ID Selector
Categories: Selector
Explanation side of the Card

Explanation: The selector used to style a specific element with a unique identifier. It's written with a '#' symbol, followed by the element's ID. Since IDs should be unique within a page, this selector targets exactly one element, making it highly specific.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: