STEP 12 HELP<<<<<Learn Typography by Building a Nutrition Label - Step 12

Tell us what’s happening:
It won’t let me pass step 12 it keeps saying You should create an h1 selector.

Your code so far

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

<head>
  <meta charset="UTF-8">
  <title>Nutrition Label</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet">
  <link href="./styles.css" rel="stylesheet">
</head>

<body>
  <div class="label">
    <h1>Nutrition Facts</h1>
    <p>8 servings per container</p>
    <p>Serving size 2/3 cup (55g)</p>
  </div>
</body>
</html>
/* file: styles.css */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
}

.label {
  border: 2px solid black;
  width: 270px;
  margin: 20px auto;

/* User Editable Region */

  padding: 0 7px;
h1 {
  font-weight: 800;
}

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15

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

Link to the challenge:

Look at your .label selector. You do not have a closing } before the h1 selector

Just like @Cody_Biggs said, you erased part of the code.

Use the Reset Step button to remove mistakes, and apply your selector again, it should be good! :wink:

1 Like

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