Bij les 4 Usability

Opdrachtblad PRIMM

voorbeeld

index.html

<!doctype html>
<html lang="nl">
<head>
  <meta charset="utf-8" />
  <title>PRIMM CSS Start</title>
  <link rel="stylesheet" href="styles.css" />
</head>
<body>
  <header>
    <h1>Nieuwsbrief</h1>
    <p class="tagline">Webklas havo/vwo</p>
  </header>

  <main>
    <article class="card">
      <h2>Les 1: CSS</h2>
      <p>We verkennen selectors, classes en het box-model.</p>
      <a href="#" class="btn">Lees meer</a>
    </article>

    <article class="card highlight">
      <h2>Les 2: Opmaak</h2>
      <p>Typografie, kleuren en ruimte (margin/padding).</p>
      <a href="#" class="btn">Aan de slag</a>
    </article>
  </main>

  <footer>
    <p>&copy; 2025 Webklas</p>
  </footer>
</body>
</html>

styles.css

/* Basis */
body { font-family: system-ui, sans-serif; line-height: 1.5; }
header, main, footer { max-width: 800px; margin: 0 auto; }

/* Header */
header { background: #f5f5f5; padding: 16px; border-bottom: 1px solid #ddd; }
.tagline { color: #666; }

/* Cards */
.card { background: white; border: 1px solid #ddd; padding: 16px; margin: 16px 0; }
.card h2 { margin-top: 0; }
.card.highlight { border-color: #6aa6ff; }

/* Knop */
.btn { display: inline-block; padding: 8px 12px; border: 1px solid #333; text-decoration: none; }

HTML opdrachten