HTML basics: Page title and language
A descriptive title names the browser tab; the lang attribute identifies the language of the document.
Current edit
Understand the pattern
A descriptive title names the browser tab; the lang attribute identifies the language of the document.
A descriptive title names the browser tab; the lang attribute identifies the language of the document.
Misconceptions to reject
- A visual appearance alone guarantees the intended HTML meaning.
- Replacing semantic elements with generic divs automatically improves accessibility.
The preview is a sanitized subset, not a full browser compatibility test.
Worked example and expected result
<html lang="en"><head><title>Library hours</title></head><body><h1>Visit the library</h1><p>Open Tuesday through Saturday.</p></body></html>A descriptive title names the browser tab; the lang attribute identifies the language of the document.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: HTML basics: Heading hierarchyTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01HTML basics: Document shellThe doctype selects standards mode; html contains metadata in head and visible content in body.Practice
- 02HTML basics: Heading hierarchyHeading levels describe nested sections, not a choice of font size.Practice
- 03HTML basics: Readable paragraphsA paragraph groups related sentences. Separate ideas deserve separate p elements rather than repeated line breaks.Practice