Skip to content
Clairos Learn

HTML basics · Lesson 1 of 12 · 7 minutes

HTML basics: Document shell

The doctype selects standards mode; html contains metadata in head and visible content in body.

Mastery 0/3Run itExplain itApply it
Web workshopInert preview · code inspection

Current edit

PreviewNo external resources

Understand the pattern

The doctype selects standards mode; html contains metadata in head and visible content in body.

The doctype selects standards mode; html contains metadata in head and visible content in body.

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
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>Workshop guide</title></head>
<body><h1>Workshop guide</h1><p>Bring a notebook.</p></body>
</html>

The doctype selects standards mode; html contains metadata in head and visible content in body.

Try a variation

Adapt the final example to a different project name while retaining its structure and relationships. A different context still needs a real browser and accessibility check.

Explain it

Which statement correctly explains document shell?

Apply it elsewhere

You reuse document shell in a different project. What must still be verified?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: HTML basics: Page title and languageTry an incident drill

Anonymous 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

  1. 01HTML basics: Page title and languageA descriptive title names the browser tab; the lang attribute identifies the language of the document.Practice
  2. 02HTML basics: Heading hierarchyHeading levels describe nested sections, not a choice of font size.Practice
  3. 03HTML basics: Readable paragraphsA paragraph groups related sentences. Separate ideas deserve separate p elements rather than repeated line breaks.Practice