Learn Typography by Building a Nutrition Label - Step 4

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

the code does not pass the test… but looks alright

Your code so far

<!-- file: index.html -->

<!-- User Editable Region -->

<!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 rel="stylesheet" href="./styles.css"/>
</head>

<body>
  <h1>Nutrition Facts</h1>
  <p>8 servings per container</p>
  <p>Serving size 2/3 cup (55g)</p>
</body>
</html>

<!-- User Editable Region -->

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0

Challenge: Learn Typography by Building a Nutrition Label - Step 4

Link to the challenge:

Ya, it looks good. What hint are you getting?

If you have any browser extensions installed that change the styling of the page (such as dark mode) then that could be causing a conflict with the tests. You might want to start disabling them until you find the one that is the problem. Or you could switch to a different, “clean” browser that doesn’t have any extensions installed.

Sorry, your code does not pass. Don’t give up.

Your code should have two self-closing link elements.

I thought so. It really sounds like you have an extension installed that is adding a link element behind the scenes and thus confusing the tests.

thanks, I will check

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