Boolean Attributes
Description
Boolean attributes are attributes without value.
Example
The disable
in the following code is a boolean attribute.
Enter what you like: <input disabled>
The disabled attribute stops the user from entering data.
Note
You can define the same boolean attribute by assigning the empty string ("") or by setting the value to be the name of the attribute.
Enter what you like: <input disabled="">
Enter what you like: <input disabled="disabled">