HTML Canvas
Learn the HTML canvas element: drawing shapes, paths and text with the 2D context, animating with requestAnimationFrame, keeping drawings sharp on high-resolution screens, handling clicks with correct coordinates, making canvas accessible, performance, security and tainted canvases, with live demos.
HTML Media Controls
Learn HTML media controls: the built-in controls attribute, what browsers add, how to build your own accessible player with buttons and sliders using the media API (play, pause, currentTime, volume, playbackRate and events), keyboard support, and common mistakes, with a live custom player.
Script Loading and Performance
Understand what a browser does when it meets a script, why JavaScript is the most expensive kind of file, and how to load it without blocking the page. Includes a script order lab and a script weight lab.
The async Attribute
Learn how the async attribute works, why it suits independent scripts like analytics, and why it causes flaky bugs when scripts depend on each other. Includes a race condition simulator and a which-mode quiz.
The defer Attribute
Learn exactly how the defer attribute works: when deferred scripts download and run, what order they keep, which bugs appear when you add it, and how to move an old page to defer safely. Includes a run order simulator and a migration helper.
The HTML Script Element
Learn the HTML script element: inline and external scripts, defer, async and type module, where to place scripts, data blocks like JSON-LD, noscript fallbacks, and how to load JavaScript safely. Includes a live loading-order experiment, a script tag checker, and a JSON data block demo.
The template Element
Learn the template element: keep reusable chunks of HTML in your page without showing, loading, or running them, then clone and fill them with JavaScript. Covers template.content, cloneNode and importNode, safe filling with textContent, table rows, common bugs like forgetting to clone and duplicate ids, and a preview of declarative shadow DOM. Includes a live card builder lab and a true-or-false quiz.