Search⌘ K
AI Features

Programming Exercises

Explore how to use HTML5 custom data attributes in practical coding exercises. Learn to define and style data with CSS, and access or update data attributes dynamically using JavaScript. This lesson helps you gain hands-on experience with essential front-end techniques for managing custom data in web development.



Coding exercises


Defining and styling custom data with HTML & CSS

Exercise 1: Favorite childhood books trio

Write code to create a list of three books, of three different genres, with unique ids using custom data attributes. Specify the ...