Revenir à la leçon

Fichier fonctionnel d’origine

worked-solution/index.html

Le code et les pages d’exemple fonctionnelles conservent leurs identifiants et leurs textes d’origine. La leçon et les consignes des fichiers les expliquent dans votre langue.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>Alex Morgan — designer and developer</title>
    <meta
      name="description"
      content="Selected projects and contact information for Alex Morgan."
    />
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <header>
      <a href="#about">Alex Morgan</a>
      <nav aria-label="Page">
        <a href="#projects">Projects</a><a href="#contact">Contact</a>
      </nav>
    </header>
    <main>
      <section id="about">
        <p>Designer and developer</p>
        <h1>I build useful things for people.</h1>
        <p>I enjoy turning everyday problems into small, understandable products.</p>
      </section>
      <section id="projects">
        <h2>Selected projects</h2>
        <article>
          <h3>A neighbourhood reading club</h3>
          <p>A simple page that helps neighbours find the next book and meeting.</p>
          <a href="#contact">Ask me about this project</a>
        </article>
        <article>
          <h3>A community garden diary</h3>
          <p>
            A diary that helps volunteers find planting notes and the next shared task.
          </p>
          <a href="#contact">Ask me about the garden diary</a>
        </article>
      </section>
      <section id="contact">
        <h2>Get in touch</h2>
        <p>Email <a href="mailto:alex@example.com">alex@example.com</a>.</p>
      </section>
    </main>
    <footer><p>Alex Morgan</p></footer>
  </body>
</html>