What is HTML Attributes?
- HTML elements can have attributes
- Attributes provide additional information about an element
- Attributes are always specified in the start tag
- Attributes come in name/value pairs like: name=”value”
HTML attributes are modifiers of HTML elements. They generally appear as name-value pairs, separated by “=”, and are written within the start tag of an element, after the element’s name:
<tag attribute=”value“>(content to be modified by the tag)</tag>