The HTML
id
attribute is
used to specify a unique id for an HTML element (the value must be unique
within the HTML document).
In CSS, to select an element with a specific id,
write
a hash (#) character, followed by the id of the
element.
Note - The Difference Between Class and ID is that the HTML element can only have one unique id that belongs to that single element, while a class name can be used by multiple elements.
0 Comments