简体   繁体   中英

Term for HTML attributes without a value

Is there a term used to describe the syntax for HTML attributes with missing values?

eg

<td nowrap>
<td nowrap="nowrap">

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM