- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>The website of a beginning coder</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <header>
      <p>Blog</p>
      <nav>
        <a href="index.html">Return to home</a>
      </nav>
    </header>
    <main>
      <article>
        <h1>Day Twelve. Everyone loves cookies</h1>
        <p>Today, Muffin asked me to make the recipe <a>for those fish cookies</a> accessible to all of his customers. But as luck would have it, I don’t have a printer, and I don’t want to waste paper printing out the recipe for everyone. I had to create a link to download the file.</p>
        <p>
          <!-- Format this text as a link -->
          Download
        </p>
      </article>
      <aside>
        Your ad could go here
      </aside>
    </main>
    <footer>
      Website footer
    </footer>
  </body>
</html>
CSS
body {
  padding: 0 30px;
  font-size: 14px;
  line-height: 22px;
  font-family: "Georgia", serif;
  color: #222222;
}
h1 {
  font-size: 20px;
  line-height: normal;
}
aside {
  margin: 20px 0;
  color: #c4c4c4;
}
a[href] {
  color: #0099ef;
  text-decoration-line: underline;
}
You’ve gone to a different page
Goalscompleted
0
- Format the word Downloadas a link with the addressfiles/recipe.pdf.
- Follow the link and then go back.
- Add the attribute downloadto the link.
- Follow the link again.
Comments