HTML text and stored fragments
Dates, language changes, inert templates and literal markup text.
Give a readable date a machine-readable value
Keep a date-only datetime value separate from localized wording and from a timestamp.
Mark a language change inside one paragraph
Use lang on a short phrase so it can differ from the surrounding paragraph language.
Keep a fragment inert inside template
Distinguish stored template content from ordinary hidden elements in the document tree.
Show markup as text without creating elements
Escape angle brackets and ampersands when a code example belongs in HTML text content.