Learn Basic CSS by Building a Cafe Menu - Step 16

Tell us what’s happening:

Cafe Menu } " What is wrong in my code? What should I correct?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <link  rel,href {   stylesheet" ><a ="styles.css">     
      }
"
  </head>

<!-- User Editable Region -->

  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 16

this is not valid code

try to follow each part of the instructions carefully:

Inside the head element, add a link element. Give it a rel attribute with3. the value of "stylesheet" and a href attribute with the value of "styles.css" .

  1. add a link element
  2. Give it a rel attribute
  3. the rel attribute should have the value of "stylesheet"
  4. give it a href attribute
  5. the href attribute should have a value of "styles.css"
1 Like

Thanks, your advice has helped me solve the problem.