Build a Recipe Page - Build a Recipe Page

Tell us what’s happening:

I’m trying to build this recipe page and it keeps saying:
“You should have an html element with lang set to en.”

But in my opinion I have this in my code. I’ve even tried to copy it from an other code from another person just to be sure there’s no typing errors but it just refuses to except it.

Does anyone else see what I’m doing wrong?

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>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>
      <h2>Ingredients</h2>
      <ul>
        <li>Flour</li>
        <li>Soda</li>
        <li>Sugar</li>
        <li>Chocolate</li>
      </ul>
        <h2>Instructions</h2>
      <ol>
        <li>Shake
        <li>Stir
        <li>Scramble
        <li>Bake
      </ol>
      <img src="https://cdn.freecodecamp.org/curriculum/labs/recipe.jpg" alt="Nice picture">
    </body>

Your browser information:

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

Challenge Information:

Build a Recipe Page - Build a Recipe Page

did you add the html closing tag too?

1 Like

Sometimes the problem/solution is so easy and you just can’t get to it. Thanks that was it. :slight_smile:

1 Like

just remember to search the forum for posts that have the same title as yours as you are almost never going to be the only one to hit the issue