Attribute

The attribute provides additional information about element. In below example you can see the attribute is style and height and color are value of the attribute.

Syntax

<element attribute-name=”value”>content</element>

<p style=”color: red”>Attribute example</p>