Modern HTML
Attributes that connect HTML to CSS and JavaScript, and interactive elements that browsers now provide for free, so you can write less code.
About 3 hours of study
Learning objectives
- Use global attributes correctly
- Attach custom data for scripts
- Use built-in interactive elements
Lessons
- 1
Global attributes and custom data Advanced
The attributes every element accepts: id, class, title, hidden, lang and data-*, plus how HTML, CSS and JavaScript connect through them.
- 2
Built-in interactive elements Advanced
Disclosure widgets, dialogs, progress bars and meters that HTML provides for free, and how to reuse structure with the template element.
Module practice
- Classes and an idEasy
- Store details in data attributesMedium
- Untangle a messy pageHard
- A collapsible answerEasy
- Progress or meter?Medium
- An accordion and a templateHard