Attributes are the individual pieces of information that are attached to an element, inside the start tag.
It allows you to explicitly attach a style to an element so that it can do the right formatting. Some elements require attributes.
For example: the <img> element, which allows you to pull the content from an image file and place it in your web page.
The <img> tag requires two pieces of information— the image URL (the source) and the alternative text that describes the picture .These two pieces of information are specified using two attributes, named src and alt.
<img src=”sunshine.jpg” alt= “sunshine”/>