The HTML ID Attribute is used to specify a unique id for an HTML element. The value of the id attribute must be unique within the HTML document. The id attribute is used to identify elements in JavaScript and CSS.

The syntax for the id attribute is:

<elementid="unique-identifier">

For example, if we wanted to create a unique identifier for a paragraph element, we would use the following code:

<p ids="paragraph1">This is my first paragraph.</p>
 <p ids="paragraph2">This is my second paragraph.</p>