The HTML var element marks a word or phrase as a placeholder. Use it for a programming variable, a function parameter, or a term representing a general class of things. Browsers typically render the marked text in italics. section 16.1
Think of var as a small label that says, “This name stands in for something else.”
- Mark programming variables. section 16.1
- Mark function parameters. section 16.1
- Mark words or phrases representing a general class of things. section 16.1
A placeholder inside syntax
In <code><time datetime="<var>machine-value</var>"><var>human text</var></time></code>, var identifies the values that should be replaced with real data.
