Naar hoofdinhoud
← πŸ“„ HTML & the platformΒ·Module A4 Β· Les 10
OpdrachtBuild a product card. <article> containing: <img src='/keyboard.jpg' alt='Mechanical keyboard with backlit keys' width='400' height='300' loading='lazy'>, <h3>Mechanical Keyboard</h3>, <p>$129</p>, then <dl> with three dt/dd pairs: Type/Tactile, Layout/Full-size, Backlit/Yes.

Sluitsteen module: toegankelijke datakaart

200 XP12 min
Theorie

Putting A4 together

A "data card" β€” a small standalone unit that lists product details. Real sites build hundreds of these (product cards, customer cards, lesson cards). Building one correctly tests every concept from this module.

The data card we're building

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ [product photo]            β”‚
β”‚ Mechanical Keyboard        β”‚
β”‚ $129                       β”‚
β”‚ ────────────────────────── β”‚
β”‚ Type:    Tactile           β”‚
β”‚ Layout:  Full-size         β”‚
β”‚ Backlit: Yes               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Decompose:

  • `<article>` wrapper (independently syndicatable)
  • `<img>` with proper alt + width/height + loading="lazy"
  • `<h3>` product name
  • `<p>` price
  • `<dl>` spec sheet (Type/Layout/Backlit as dt+dd pairs)

This combines A2 (<article>), A4 (<img>, <dl>), plus general HTML correctness.

πŸ”’

Registreer om te beginnen met coderen

Theorie is voor iedereen. De editor, live preview en check ontgrendelen met een 7-daagse gratis proefperiode β€” kaart vereist, opzegbaar.

Registreren β€” gratis proef β†’

De eerste 10 lessen in elke track zijn gratis. Geen kaart nodig.

← VorigeVolgende les β†’

EΓ©n Python- of web-tip per dag β€” per e-mail

Kort, met de hand geschreven, geen spam. Met één klik afmelden.