HTML attributes usually contain name/value pairs like name=”value”. The Attribute values should always be enclosed in quotation marks. The name parameter takes the property’s name to be assigned to the element. The value takes the property value or extent of the property names that can be aligned over the element.
HTML attributes provide additional information about HTML elements. They are defined directly after the tag name. They only appear in opening tags and not in closing tags.