CompitoBuild 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.
Capstone del modulo: scheda dati accessibile
200 XP12 min
Teoria
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.
๐
Iscriviti per iniziare a programmare
La teoria รจ aperta a tutti. Editor, anteprima e check si sbloccano con una prova gratuita di 7 giorni โ carta richiesta, annullabile in qualsiasi momento.
Iscriviti โ prova gratuita โLe prime 10 lezioni di ogni percorso sono gratuite. Nessuna carta richiesta.