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>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

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

<!-- 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/122.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 9

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to FFC forum. You need src attribute with the value link. And alt attribute with the value text
Example

<img attribute="value" attribute="your text goes here">

@najmuddeenpotgieter

JazakAllah brother Hasan,

I’m still very confused with what to do here, in the exercise the code starts with <img src. And in your response the code starts with <img attribute ?

could you maybe clarify this for me?

@hasanzaib1389 was just giving an example, attribute is just a placeholder for an actual attribute name, for example, href is an attribute.

1 Like

@stephenmutheu , Okay thanks for your response.

This is what the code i entered currently looks like:
<img src=:“A cute orange cat lying on its back”>“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg”>

However the error I’m getting is this:
Sorry, your code does not pass. You’re getting there.

Your img element does not have an alt attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names.

I’ve tried adding spaces where I was advised but still no luck. I’m still very new to this so maybe one of you more advanced coders can assist.

Add the text “A cute orange cat laying on it’s back.” With your alt attribute. and image link with src attribute. And you need only two <> angled brack. Before and after your img and it’s content. Don’t add any bracket within img element.
@najmuddeenpotgieter

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