# ID

A document-wide identifier assigned to a single element.

## What is an **`id`** in HTML?

A document-wide unique identifier assigned to a single element.

```html
<h2 id="desserts">Desserts</h2>
```

Level: Novice · [More HTML terms at this level](https://www.ask-codey.com/glossary/subjects/html/novice)

Updated: October 16, 2026

Source: https://www.ask-codey.com/glossary/id
