# Build a Cat Photo App - Step 40

**URL:** <https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [February 26, 2026, 10:25am UTC](https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370 "2026-02-26T10:25:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RupaKumariGupta](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@RupaKumariGupta](https://forum.freecodecamp.org/u/RupaKumariGupta)\
**Post date:** [February 26, 2026, 10:25am UTC](https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370/1 "2026-02-26T10:25:42Z")

</div>

### Tell us what’s happening:

Notice that the entire contents of the page are nested within an html element. The html element is the root element of an HTML page and wraps all content on the page.

You can also specify the language of your page by adding the lang attribute to the html element.

Add the lang attribute with the value en to the opening html tag to specify that the language of the page is English.

i’m not able to create the right syntax

### Your code so far

```html

<!-- User Editable Region -->

<html><en lang="Enlish"></en>

<!-- User Editable Region -->

  <head>
    <title>CatPhotoApp</title>
  </head>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
        <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>catnip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Two tabby kittens sleeping together on a couch.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        </figure>
      </section>
    </main>
    <footer>
      <p>
        No Copyright - <a href="https://www.freecodecamp.org">freeCodeCamp.org</a>
      </p>
    </footer>
  </body>
</html>

```

### Your browser information:

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

### Challenge Information:

Build a Cat Photo App - Step 40

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/workshop-cat-photo-app/step-40)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 26, 2026, 10:27am UTC](https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370/2 "2026-02-26T10:27:15Z")

</div>

you have added many attributes so far

for example

> [@RupaKumariGupta](#):
>
> `<a target="_blank"`

here you have added a `target` attribute with a value of `_blank`

> [@RupaKumariGupta](#):
>
> `<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg"`

here you have added a `src` attribute with a value of `https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg`

Now you need to add a `lang` attribute with a value of `en`

Please reset the step and try again

---

<div class="post-metadata">

**Author:** ![xAthenax](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/xathenax/32/411053_2.png) [@xAthenax](https://forum.freecodecamp.org/u/xAthenax)\
**Post date:** [February 28, 2026, 3:59am UTC](https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370/3 "2026-02-28T03:59:08Z")

</div>

Hi Rupa. en is not an element. Elements are displayed with \<\>. en is an attribute value. You have the correct attribute (lang), but the wrong attribute value (English). Finally, your language attribute should be within your html opening tag along with it’s value. I hope this helps you.

---

<div class="post-metadata">

**Author:** ![ianmccully](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ianmccully/32/351842_2.png) [@ianmccully](https://forum.freecodecamp.org/u/ianmccully)\
**Post date:** [March 2, 2026, 10:43pm UTC](https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370/4 "2026-03-02T22:43:28Z")

</div>

`hope this helps you are nearly there all you need is a html somthing = “en” but in the html tag and not outside it.

like \<html it goes inside the html like an id or a class `

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [March 30, 2026, 10:43pm UTC](https://forum.freecodecamp.org/t/build-a-cat-photo-app-step-40/780370/5 "2026-03-30T22:43:32Z")

</div>

Closed on March 30, 2026, 10:43pm UTC

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