BanksySan
BanksySan

Reputation: 28500

Term for HTML attributes without a value

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

Answers (2)

Arseni Mourzenko
Arseni Mourzenko

Reputation: 52321

They are called Boolean attributes, according to the spec. See http://w3c.github.io/html/infrastructure.html#sec-boolean-attributes

Upvotes: 7

Bent
Bent

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

Related Questions