Attributes are additional information provided by HTML elements. Attributes usually appear in the opening tag of an HTML tag and are used to define the behavior, style, content, or other characteristics of an element. Attributes are always written in the form of name=”value” in the tag, where name is the name of the attribute and value is the value of the…