# Reusable HTML

Reusable HTML: Templates, Slots and Custom Elements.

Updated: November 14, 2026

1. [Templates, Slots and Custom Elements](https://www.ask-codey.com/lessons/html-templates-slots-and-custom-elements) (Freelancer): Write a layout once with a template and named slots, give a card its own layout with declarative shadow DOM and no JavaScript, and use custom elements such as a star rating from a ready-made script.

Source: https://www.ask-codey.com/courses/html-in-depth/topics/html-reusable-html
