Attributes are the additional information that enables the user to properly redesign the skeletal structure of the web page. Elements which we have in html always have an attribute which generally shows the behaviours of the element. It always present in the starting tag of the element. The attributes comes up in a pair format of key and value. Now the attributes are advised to be written in lowercase letters, as it is the way recommended by w3c. We can also add multiple attributes in a single element, but for multiple attributes to work we need to provide a proper space between them.
For example :- <p align=“right”> this is html</p>. Here align is the attribute which is used with a value right. Now the function of the align attribute is used to make the content “this is html” to appear at the right hand side of the web page.