Saltar para o conteúdo principal
← 📄 HTML & the platform·Módulo A4 · Lição 10
TarefaBuild 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.

Ponto culminante do módulo: cartão de dados acessível

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.

🔒

Regista-te para começar a programar

A teoria está aberta a todos. O editor, a pré-visualização e o check desbloqueiam-se com um teste gratuito de 7 dias — cartão obrigatório, cancelável a qualquer momento.

Registar — teste grátis →

As primeiras 10 lições de cada trilha são grátis. Sem cartão necessário.

← AnteriorPróxima lição →

Recebe uma dica de Python ou web por dia — por email

Curto, escrito à mão, sem spam. Cancela a subscrição num clique.