Build a Recipe Page - Build a Recipe Page

Tell us what’s happening:

I have done all of the tasks in this lesson correctly however it still says I have missed a few things. It says that I haven’t done 2, 3 and 8.

2: You should have an html element with lang set to en.
3: You should have a head element within the html element.
8: You should have a body element within your html element.

I have double checked this with ChatGPT to find my errors but AI says I did everything right. Please help me I’m so confused.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Chocolate Chip Cookies</title>
  </head>
  <body>
    <h1>Chocolate Chip Cookies</h1>
    <p>These super soft and chewy chocolate chip cookies will make you want more!</p>
    <h2>Ingredients</h2>
    <ul>
      <li>sugar</li>
      <li>cornflour</li>
      <li>baking powder</li>
      <li>flour</li>
      <li>butter</li>
      <li>vanilla</li>
      <li>salt</li>
      <li>baking soda</li>
      <li>2 eggs</li>
      <li>chocolate chips</li>
    </ul>
    <h2>Instructions</h2>
    <ol>
      <li>Brown butter</li>
      <li>Whisk dry ingredients</li>
      <li>Mix wet ingredients</li>
      <li>Mix in both wet and dry ingredients together</li>
      <li>Add in chocolate chips</li>
      <li>Divide the mixture into fat discs not balls</li>
      <li>Put in fridge overnight</li>
      <li>Bake for 17 minutes - Oven to 180c</li>
      <li>Cool the cookies for 20 minutes for the inside to cook</li>
      <li>Enjoy!</li>
    </ol>
    <img src="https://cdn.freecodecamp.org/curriculum/labs/recipe.jpg" alt="Pretend this is an image of the most delicious cookies you have ever seen.">
  </body>

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/18.6 Safari/605.1.15

Challenge Information:

Build a Recipe Page - Build a Recipe Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-recipe-page/build-a-recipe-page

are you sure you have all the pieces needed for an html element?

what do you need when you create an element?

1 Like

Thank you so much I realised what i missed.

1 Like

Hey, can you please explain what the problem was? I’m in the same situation now.

What do most HTML tags consist of?

1 Like

hi there @alcisica , please create your own topic to ask your questions

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.