Definition
An HTMLattribute is an associated property of an HTML element and used to extend the capability of an HTML element.
Rules
To use attributes, these following rules are needed:- the attribute values must have quotes
- attributes are separated with space
- attribute names should be lower case
- element types have private attributes
- public attributes, like class or id, can go on any element
- don't do this!
<imput name="fruit"mango"">, but if quotes are neended, use single quotes instead, as this<imput name="fruit'mango'"> - use dashes instead of spaces in the attribute values