Reputation: 28500
Is there a term used to describe the syntax for HTML attributes with missing values?
e.g.
<td nowrap>
<td nowrap="nowrap">
Upvotes: 4
Views: 88
Reputation: 52321
They are called Boolean attributes, according to the spec. See http://w3c.github.io/html/infrastructure.html#sec-boolean-attributes
Upvotes: 7
Reputation: 299
These attributes are called boolean attributes. https://www.w3.org/TR/2008/WD-html5-20080610/semantics.html (see section 3.2.2).
Not to be confused by attributes having boolean values.
Upvotes: 2