Μετάβαση στο κύριο περιεχόμενο
← 📄 HTML & the platform·Ενότητα A4 · Μάθημα 10
ΕργασίαBuild 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.

Υπόμνημα ενότητας: προσβάσιμη κάρτα δεδομένων

200 XP12 min
Θεωρία

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.

🔒

Εγγράψου για να αρχίσεις να προγραμματίζεις

Η θεωρία είναι ανοιχτή για όλους. Ο επεξεργαστής, η ζωντανή προεπισκόπηση και ο έλεγχος ξεκλειδώνουν με 7-ήμερη δωρεάν δοκιμή — απαιτείται κάρτα.

Εγγραφή — δωρεάν δοκιμή →

Τα πρώτα 10 μαθήματα κάθε διαδρομής είναι δωρεάν. Δεν χρειάζεται κάρτα.

← ΠροηγούμενοΕπόμενο μάθημα →

Μια συμβουλή Python ή web την ημέρα — με email

Σύντομο, γραμμένο στο χέρι, χωρίς spam. Διαγραφή με ένα κλικ.