id=""
Browser |
|
---|
The id attribute assigns a unique ID to an element.
The ID can be used to apply styles to the element. It can also be used to reference the element in JavaScript or create links to the element.
This attribute can be used in most elements.
<p id="example"></p>
Attribute | Value | Explanation |
---|---|---|
id=" " | ID name | arbitrary name |
The ID name must be unique within a document.