Learn HTML by Building a Cat Photo App - Step 9

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">

      <img alt="A cute orange cat lying on its back">
    </main>
  </body>
</html>

Your browser information:

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

Challenge: Learn HTML by Building a Cat Photo App - Step 9

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

how to go about the step 9 trying it but still saying incorrect

This step is introducing you to another HTML attribute called alt.
You are also shown an example of how to add an alt attribute to an img element

<img src="cat.jpg" alt="A cat">

Notice how the alt attribute is located inside the img tag and next to the src statement?

You have been asked to add an alt attribute to the img element the same way.

Try to reset the code (using the button that looks like an arrow turning) and add the alt attribute to the img element you have already.

hello and welcome to fcc forum :slight_smile:

you’re supposed to add this “alt” text in that already “existing” img element, and not create another img tag for it

i would recommend you to remove this “extra” img tag and simply copy that
“alt” text into “given” img tag

address that change and it should be alright, happy learning :slight_smile:

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