Even after placing the link element it gives me error Your code should have a link element

Tell us what’s happening:
Even after placing the link element it gives me error Your code should have a link element

  **Your code so far**
\ file: <!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" 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>
<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" 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: h1, h2, p {
text-align: center;
}
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/101.0.4951.67 Safari/537.36

Challenge: Step 17

Link to the challenge:

Hey there! Welcome to the FCC forums :wave: :slightly_smiling_face:

Double check your file names! You’re linking to “style.css” but it looks like the lesson provides for a “styles.css” :wink:

it works now…thank you :slightly_smiling_face:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.