Defect coming for src attribute

I am not sure what is wrong with the below code. I have added the src attribute.

Your code so far

<h2>CatPhotoApp</h2>


<main>
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie."></img>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Thank you so much. I am new to this platform so didn’t know this

1 Like

The failing test says:

Your image should have a src attribute that points to the kitten image.

The instructions say:

Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

You are using this:

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie."></img>

Those do not match.

When I fix that, the code passes for me.

It’s cool, we all start somewhere.

1 Like

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