DEV Community

Cover image for 15 Useful HTML attributes every web developer should know
Darpan Vithani for Canopas Software

Posted on

15 Useful HTML attributes every web developer should know

HTML Attribute is the modifier used to provide additional information about the elements and defines the behavior of that element.

This attribute helps not only enhance your web page performance but also makes your coding life easy and you will feel like a coding ninja😎.

This blog will guide you on how you can enhance the performance of your website by using some HTML attributes. It includes srcset, sizes, picture, download, accept, inputmode, pattern, readonly, autofocus, autoplay.

For this article, I’ll assume you can write a decent amount of code in HTML.

And with that confirmation let’s go ahead…

These attributes in place help to increase your productivity and eventually the performance of your website.

The srcset, sizes, picture, and media attributes look complicated, but they're easy to understand if you format them as shown above.

On the other hand pattern , inputmode, download, and accept are basically used while taking input from users for the accuracy of data.

That's it for today, Keep exploring!!!

For implementation details and examples, check out our canopas blog.

Top comments (1)

Collapse
 
nlxdodge profile image
NLxDoDge

The article here is a bit broken, but I read the Medium one and it has some nice features that I haven't seen or hear before.