
14 min read
Web Components: Custom Elements, Shadow DOM, and Slots
Web Components are browser APIs for custom HTML elements. Learn where Custom Elements, Shadow DOM, templates, and slots fit, with a full copy-code build.
Topic · 4 articles
Hands-on guides to the powerful Web APIs built into every browser, enabling dynamic and interactive web experiences
All articles — 4

14 min read
Web Components are browser APIs for custom HTML elements. Learn where Custom Elements, Shadow DOM, templates, and slots fit, with a full copy-code build.

12 min read
The DOM is the live object tree a browser builds from HTML. JavaScript reads and changes that tree, then the browser updates the page.

13 min read
Web Workers run JavaScript away from the main UI thread. Use them for CPU-heavy work, file processing, parsing, and parallel worker pools.

11 min read
The Canvas API gives a page a bitmap surface for drawing shapes, gradients, text, pixel edits, animations, and exports such as PNG or WebP.