Skip to content
Astera Technology

HTML text and stored fragments

Dates, language changes, inert templates and literal markup text.

Astera Technology

Give a readable date a machine-readable value

Keep a date-only datetime value separate from localized wording and from a timestamp.

Practical lesson
Astera Technology

Mark a language change inside one paragraph

Use lang on a short phrase so it can differ from the surrounding paragraph language.

Practical lesson
Astera Technology

Keep a fragment inert inside template

Distinguish stored template content from ordinary hidden elements in the document tree.

Practical lesson
Astera Technology

Show markup as text without creating elements

Escape angle brackets and ampersands when a code example belongs in HTML text content.

Practical lesson