This Blog is for HTML Tutorials.

HTML Logo

HTML ID


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.


HTML-ID

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.

Post a Comment

0 Comments