Skip to content
Clairos Learn

SEO, performance, and hosting · Lesson 4 of 8 · 10 minutes

SEO, performance, and hosting: Viewport metadata

A device-width viewport lets responsive layouts use the device width rather than a wide desktop layout viewport.

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

Current edit

PreviewNo external resources

Understand the pattern

A device-width viewport lets responsive layouts use the device width rather than a wide desktop layout viewport.

A device-width viewport lets responsive layouts use the device width rather than a wide desktop layout viewport.

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
<head><title>Mobile workshop guide</title><meta name="viewport" content="width=device-width, initial-scale=1"></head><main><h1>Mobile workshop guide</h1></main>

A device-width viewport lets responsive layouts use the device width rather than a wide desktop layout viewport.

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 viewport metadata?

Apply it elsewhere

You reuse viewport metadata in a different project. What must still be verified?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: SEO, performance, and hosting: Asset dimensionsTry 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. 01SEO, performance, and hosting: Canonical pathsA canonical link identifies the preferred URL for duplicate content; it is not a redirect or an indexing guarantee.Practice
  2. 02SEO, performance, and hosting: Asset dimensionsExplicit image dimensions reserve layout space. Below-the-fold images may be lazy-loaded; a hero usually should not be.Practice
  3. 03SEO, performance, and hosting: Robots guidanceA robots meta noindex directive asks compatible crawlers not to index a page; they must be allowed to fetch it to see the directive.Practice