SEO, performance, and hosting: Asset dimensions
Explicit image dimensions reserve layout space. Below-the-fold images may be lazy-loaded; a hero usually should not be.
Current edit
Understand the pattern
Explicit image dimensions reserve layout space. Below-the-fold images may be lazy-loaded; a hero usually should not be.
Explicit image dimensions reserve layout space. Below-the-fold images may be lazy-loaded; a hero usually should not be.
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
<img src="guide.png" alt="Guide to the workshop rooms" width="960" height="640" loading="lazy">Explicit image dimensions reserve layout space. Below-the-fold images may be lazy-loaded; a hero usually should not be.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: SEO, performance, and hosting: Robots guidanceTry 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
- 01SEO, performance, and hosting: Viewport metadataA device-width viewport lets responsive layouts use the device width rather than a wide desktop layout viewport.Practice
- 02SEO, 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
- 03SEO, performance, and hosting: Helpful 404 pagesA useful not-found page offers recovery links, but the server must still return HTTP 404 rather than disguising it as success.Practice