Learn Basic CSS by Building a Cafe Menu - Step 17

Tell us what’s happening:
The instructions tell me to nest a self-closing link element in the head element. And to give it a rel attribute value stylesheet and an href attribute value of styles.css. What am I doing wrong?

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  **<link rel="stylesheet" href="style.css">**
  <meta charset="utf-8">
  <title>Cafe Menu</title>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
/* file: styles.css */
h1, h2, p {
text-align: center;
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14526.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.133 Safari/537.36

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 17

Link to the challenge:

This is not exactly the name of the file they are asking you to include. I would recommend you copy/paste strings from the instructions if possible to avoid these types of errors in the future.

1 Like