HTML Value Syntax

HTML idref syntax

A reference to an element identifier in the applicable tree or scope. Some attributes accept one ID (label for); others accept a whitespace-separated list (aria-labelledby). The attribute defines which target types are allowed. This is a value grammar, not a standalone HTML element.

Formal Syntax & Structure

html syntaxhtml
for="email"

Working Example

Example Snippethtml
<label for="email">Email</label><input id="email" type="email">
HTML Reference