Learn Basic CSS by Building a Cafe Menu - Step 17

Tell us what’s happening:
Describe your issue in detail here.

Hey, I have tried to get this code to pass for a while now, I have looked up what could be wrong and I can’t figure it out. I am trying to link the HTML file with the CSS file, and functionally it works but freecodecamp won’t take my code. I don’t think I spelled anything wrong. It keeps saying " You should have one self-closing link element" ??? Ive tried closing with: link …/> and link …>

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

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

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

Link to the challenge:

There’s a typo in there. But the tests don’t test for it anyway because you don’t need a type attribute when linking a CSS file.

I’m not sure why your HTML isn’t passing because it’s passing for me (even with that typo) with both Chrome and FF on linux.

Perhaps you have a browser extension installed that is messing with the HTML? You might try disabling any extensions until you find the one that is causing problems (if indeed that is the issue).

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