Self closing link

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Nutrition Label</title>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800">
    <link="styles.css">
      </head>
  <body>
    <h1>Nutrition Facts</h1>
    <p>8 servings per container</p>
    <p>Serving size 2/3 cup (55g)</p>
  </body>
</html>

please tell why my self closing link isn’t working because my code cannot pass

Hi!
Please link to the lesson you are doing, it is hard to help without that information.

ok.
Learn Typography by Building a Nutrition Label: Step 4 | freeCodeCamp.org

Right so this link element is the issue

<link="styles.css">

What attribute do links need to work?

Second, it needs the same rel as your other link element.

its the href attribute, i used it as well but it didn’t work

i put this /> and the code didn’t pass

1 Like

Please show me the updated code. I can’t help without seeing your code.