HTML5
HTML5 Complete Reference
This is a one-page overview of everything HTML5 brings to the web, grouped by feature area. Use it as a map: each area covers a set of elements or JavaScript APIs you can explore in depth in the individual topics.
HTML5 Feature Areas
| Feature Area | What It Covers | Key Elements / APIs |
|---|---|---|
| Semantics | Meaningful page structure | header, nav, main, section, article, aside, footer, figure |
| Multimedia | Native audio and video | audio, video, source, track |
| Graphics | Drawing and vector art | canvas, svg |
| Forms | Richer inputs and validation | input types (email, date, range), datalist, output, progress, meter |
| Web Storage | Client-side key/value data | localStorage, sessionStorage |
| Offline / Databases | Large data and offline apps | IndexedDB, Service Workers, Cache API |
| Connectivity | Real-time and background comms | WebSockets, Server-Sent Events, Web Workers |
| Device Access | Hardware and context | Geolocation, Drag and Drop, File API |
| Custom Data | Attach data to elements | data-* attributes, dataset |
| Microdata | Machine-readable structured data | itemscope, itemtype, itemprop, itemid |
A Page That Uses Several Areas
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Feature Tour</title>
</head>
<body>
<header><h1>HTML5 in One Page</h1></header>
<main>
<section>
<h2>Media</h2>
<video width="320" controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
</video>
</section>
<section>
<h2>Forms</h2>
<label>Email: <input type="email" required></label>
<label>Score: <meter value="80" max="100">80</meter></label>
</section>
</main>
<footer><p>© 2026 HTML5 Reference</p></footer>
</body>
</html>ℹ️
HTML5 is modular: you rarely use every feature at once. Pick the elements and APIs that fit your page — semantic structure and forms for content sites, canvas and Web Storage for apps.
Key Takeaways
- HTML5 spans semantics, media, graphics, forms, storage, and connectivity.
- Semantic and form elements are markup; storage and connectivity are JavaScript APIs.
- Use this reference as a map into the detailed topics.
