Emanuil Rusev Emanuil Rusev - 9 months ago 39
HTML Question

What's the term that refers to attributes that accept no value (i.e. "checked" and "selected")?

The attributes

, of the
and the
tags respectively, belong to a group of attributes that don't accept a value.

What's the term that refers to that group of attributes?


Boolean attributes:

Some attributes play the role of boolean variables (e.g., the selected attribute for the OPTION element). Their appearance in the start tag of an element implies that the value of the attribute is "true". Their absence implies a value of "false".

Boolean attributes may legally take a single value: the name of the attribute itself (e.g., selected="selected")...