HTML

HTML Tutorials

What are data- attributes in HTML and what are they used for?

Data- attributes in HTML – what are they and what are they used for? When writing a website in HTML, we often need to store some extra information about an element. This can be information that is not visible to the user but is useful in JavaScript or CSS – for example, it can be […]

Read more

Responsive images in HTML5, using srcset

Images often are problematic while we creating web page . Displaying larger image on larger screen is a better for user experience, but displaying large photo on small screen, e.g. on a phone, may unnecessarily delay page loading. Therefore, a good solution is to “serve” images with different sizes and weight for different screens.

Read more