# id

*noun*

say it: **“EYE-DEE”** **/ˌaɪˈdiː/**

An attribute that gives one element a name no other element on the page may share, so links, styles and scripts can find exactly that element.

## What is **`id`**?

**`id`** — A document-wide identifier assigned to one element.

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

## In a sentence

- “I gave the opening-hours section the **id** hours, so a link to #hours jumps straight to it.”

Level: Novice · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=1)

Updated: November 9, 2026

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