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.

<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

Updated