Build a Recipe Page - Bug?

Tell us what’s happening:

Hello,

I looked up the forum to see if I could find an answer to my issue but I didn’t so here’s my own post : I’m stuck at the “Build a Recipe” lab.

The tests tell me that I don’t have an html/head/body element but I can’t find the issue with my code. The opening and closing tags are fine, and it is structured in the right way from what I understood in the previous lessons.

Many thanks for your help !

Your code so far

<!DOCTYPE html>
  <html lang="en">
    <head>
      <title>Gateau Chocolat</title>
      <meta charset="UTF-8" />  
    </head>
    <body>
      <h1>Recette de gateau au chocolat de Paul</h1>
      <p>Suivez cette recette à la lettre pour déguster le meilleur gateau au chocolat du monde !</p>
      <h2>Ingredients</h2>
        <ul>
          <li>Sucre</li>
          <li>Beurre</li>
          <li>Chocolat</li>
          <li>Farine</li>
          <li>Levure</li>
        </ul>
      <h2>Instructions</h2>
        <ol>
          <li>Fondre le chocolat</li>
          <li>Casser les oeufs</li>
          <li>Monter les blancs en neige</li>
          <li>Fondre le beurre</li>
          <li>Mélanger</li>
      <img src="https://cdn.freecodecamp.org/curriculum/labs/recipe.jpg" alt="Instruments de cuisine">
    </body>  
  </hmtl>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0

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

Good job sir, however your closing tag should be < / html >

Update : I used an HTML corrector which helped me see I didn’t add the closing tag , and that the “/” at the end of the meta charset was not necessary.

However, I still have two errors :

Error: Saw an end tag after body had been closed.

Error: Stray end tag hmtl.

But I don’t understand why it tells me that : the closing /html tag should be after the /body tag right ?

And I don’t see why my /html is stray, I did open it line 2…

Oh my… Many thanks !

I got you noticed the difference between html and hmtl?

1 Like

Could it be that you’re missing the </ol> in your second list? It might make the checker confused about the other elements.