What is an ID Selector?
The ID Selector is used to style one unique element on a webpage.
Each ID should be used only once in the entire HTML document.
IDs are best for elements that appear a single time, such as:
-
Header
-
Footer
-
Navigation bar
-
Unique sections
-
One specific button
Syntax
In CSS, an ID selector begins with a # (hash symbol):





