With the proper labels, we can style individual HTML elements! Specifically, we can label HTML elements with a unique identifier, or ID. We can then style that specific element in the stylesheet.
To label an element with an ID, we can use the
id attribute on an HTML element.
In the example above, the heading is labeled with an
What purpose do IDs serve? IDs are intended to label unique elements in an HTML file. No two HTML elements should ever share the same ID — that would defeat the purpose of a unique identifier!