Using The id Attribute
The id attribute specifies a unique id for an HTML element (the value must be unique within the HTML document).
The id value can be used by CSS and JavaScript to perform certain tasks for the element with the specific id va...See more
lue.
In CSS, to select an element with a specific id, write a hash (#) character, followed by the id of the element:
Example
Use CSS to style an element with the id "myHeader":
My Header
Result:
My Header
Try it Yourself »
Tip: The id attribute can be used on any HTML element.
Note: The id value is case-sensitive.
Note: The id value must contain at least one character, and must not contain whitespace (spaces, tabs, etc.).
________________________________________
Answer the Question