Hello Friends,

HTML attribute is the properties by virtue of which HTML element change its nature.

I make this simple to understand it better.

we take an example of a plain white wall which does not look impressive with its white look but when we paint the same wall with some amazing color then it starts looking attractive and we can also draw few pictures over a wall.

So, here color and pictures are the attributes of a wall which makes it beautiful and attractive.

In the same manner HTML attributes just like color, background color, style, fonts and etc make our HTML document more attractive and beautiful.

In simple language, we can say that HTML attributes do the makeup of our HTML document.

In our next tutorial, we will let you explain each attribute with an example.


Hope! you would have enjoyed this post.


Have a great time! Sayonara!