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
pls can you tell me whats wrong with that :slightly_frowning_face:

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"> 
      <img src="cat.jpg" alt="A cute orange cat lying on its back">


<!-- User Editable Region -->

    </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/117.0.0.0 Safari/537.36 Edg/117.0.2045.43

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

Link to the challenge:

Welcome to our community!

Reset step.

In the given code line add the alt="A cute orange cat lying on its back" attribute and its value inside the img element (right after the img word).

1 Like

tnx but still i didn’t get it can you send a pic for me plssssssss!!!

When you reset the step, the following code line is already given to you:

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">

Your task is to add ‘alt’ attribute and its value A cute orange cat lying on its back to the img element (actually tag):

<img src="URL" attribute="value">

This is guidance. The attribute is the ‘alt’ and the value is “A cute orange cat lying on its back”.

1 Like

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