HTML id Attribute

Example showing how to use the id attribute.

Preview

Code

<h2 id="section-title">Section Title</h2>

<p>The id attribute uniquely identifies an element.</p>

More HTML Attributes Examples (9)