Help with the photocat app

Please help with src attribute, i have been there for long now

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<img  src="https://bit.ly/fcc-relaxing- cat."alt="fcc-relaxing-cat."
<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>

Hi,
Your <img /> tag has no closing to it so first you have to add it, and after you do that, remove the whitespace in your src link.

You didn’t have an ending tag for this one and also you have a extra space between img and src

i am new to this thing, where should i specifically add the /> tag . because it still does not approve

What’s your code now??

<img src=“https://bit.ly/fcc-relaxing-cat./>” alt=“fcc-relaxing-cat.”

Your forgot the ending tag

<img src=“https://bit.ly/fcc-relaxing-cat./>” is wrong, quotes are outside the tag. It should be like this <img src="https://bit.ly/fcc-relaxing-cat."/>

Structure of img tag

Eg:

<img src="Image's URL" alt="text you want to display if the image fails to load">

or

<img src="Image's URL" alt="text you want to display if the image fails to load" />

The img tag doesn’t have a closing tag, So we do it like this: <img src="" alt="">
The correct code should look like this:

<h2>CatPhotoApp</h2>
<main>

<img src="https://bit.ly/fcc-relaxing- cat." alt="fcc-relaxing-cat.">
<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>

It is has a self closing tag

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