Your image should have a src attribute that point to the kitten image. is there wrong in my code

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

Your code so far


<h2>CatPhotoApp</h2>
<main>
<section>
<img src="https://bit.ly/fcc-relaxing-cat"alt="the kitten story." width="281" height="281" loading="lazy">
<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>

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

You are close, you just don’t have the correct URL for the image. You can find it near the bottom of the instructions, second paragraph from the bottom.

You need to close the section element.

I tried it out but the image did not open and the sam problem came out

Hi @mosesstibu5873 !

Welcome to the forum!

As @tlc35us has pointed out, you are missing the closing section element.
But also, the challenge doesn’t require you to have any section elements.

The challenge also doesn’t require to have this extra stuff in your img tag.

You can probably just get rid of all of that extra stuff.

For these challenges, you just want to focus on the minimum requirements and not add extra stuff.

There will be plenty of time later, with the projects, to get fancy and add extra stuff.

1 Like

Can we see your new code with the correct img tag url?

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 (’).

Just to be clear, I copy/pasted your code into the challenge and the only thing I needed to change was the image URL and it passed.

But as @jwilkins.oboe pointed out, usually the tests don’t like unexpected changes and thus you should not do anything other than exactly what the instructions are asking for. Also, yes, please post your updated code each time you make an attempt.

And yes, technically the <section> needs a closing tag but the the tests don’t seem to care about that.

how can share the code .Is it by reposting it

You can paste your new code in a reply like this

<h1>Some code</h1>

<h2>CatPhotoApp</h2>

<main>

<img src="https://cdn.freecodecamp.org/curriculun/cat-photo-app/relaxing-cat.jpg alt="the kitten story."> 

<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>

At first glance it looks like you have a spelling error here

You are also missing end quotes here.

It is always better to copy and paste the url instead of typing it out yourself.
That way you don’t have spelling errors.

I can not able to understand about the missing end quotes

thank you so much I got it

1 Like

Your url needs to be inside quotes.

Correct

src="URL GOES HERE"

incorrect

src="URL GOES HERE

make sense?