Build a Recipe Page - Build a Recipe Page

Hi Friends,

I am getting failure messages on three lines of this code, and I was not able to figure it out after researching it.

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

Your code so far

<!DOCTYPE html> 
  <html lang="en"> 
  <head>
    <title>Chocolate Chip Cookies</title>
    <meta charset="UTF-8">
  </head>
  <body>
    <h1>Chocolate Chip Cookies</h1>
    <p>Welcome to the ultimate guide for making mini chocolate chip cookies! These bite-sized treats are perfect for satisfying your sweet tooth without overindulging. Follow this simple recipe to create delicious, crispy-on-the-outside, chewy-on-the-inside mini chocolate chip cookies that everyone will love.</p>
    <img src="https://cdn.freecodecamp.org/curriculum/labs/recipe.jpg" alt="Photo of ingredients and a whisk">
    <h2>Ingredients</h2>
    <UL>
      <li>1 cup all-purpose flour</li>
      <li>1/2 teaspoon baking soda</li>
      <li>1/4 cup unsalted butter, softened</li>
      <li>1/4 cup granulated sugar</li>
      <li>1/2 teaspoon vanilla extract</li>
      <li>1/2 cup mini chocolate chips</li>
    </ul>
    <h2>Instructions</h2>
    <ol>
      <li>Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.</li>
      <li>In a bowl, whisk together the flour and baking soda.</li>
      <li>In another bowl, beat the butter, sugar, and vanilla extract until creamy.</li>
      <li>Gradually add the dry ingredients to the wet mixture, then fold in the mini chocolate chips.</li>
      <li>Drop small spoonfuls of dough onto the baking sheet.</li>
      <li>Bake for 8-10 minutes, then let cool before enjoying!</li>
  </body>

Your browser information:

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

Challenge Information:

Build a Recipe Page - Build a Recipe Page

Welcome to the forum @GCD

Try adding a closing html tag after the body element.

Happy coding

That did the trick @Teller, much appreciated!

1 Like