id

Support

The id attribute provides a unique identifier for an element within the document. This identifier may also be used in CSS code as a hook that can be used for styling purposes, or by JavaScript code to make changes or add behavior to the element by referencing its unique id.

Example

<p>Hello World - <span id="helloSpan">Hello World</span></p>