Problem with uploading a picture

what is wrong?

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

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

1 Like

You don’t have to upload anything. You just need to use url mentioned in the challenge description.

well, I do. but it shows errors.

What is the error? Which url are you using? Correct is https://bit.ly/fcc-relaxing-cat. Also add alt attribute if you’re missing.

The error says: Your image should have a src attribute that points to the kitten image.
and i am using the right url. The one you mentioned.
and i added the alt too.

Can you post the code?

<img src="https://bit.ly/fcc-relaxing-car" alt="relaxing cat">
<h2>CatPhotoApp</h2>
<main>
  <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 are using https://bit.ly/fcc-relaxing-car which is wrong (ends with car not a cat). It should be https://bit.ly/fcc-relaxing-cat.

ohhhhh… thank you so much _

1 Like

I’m glad I could help you :heart:

1 Like

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

2 Likes

you missed the equals sign= after typing src :slight_smile: :grin:

2 Likes

Put an = sign after src

1 Like

it should say src="https://bit.ly/fcc-relaxing-cat"
Not src"https://bit.ly/fcc-relaxing-catl"

1 Like

I solved this problem. By the way thank you.

Hey there. It seems like you have https://bit.ly/fcc-relaxing-car instead of https://bit.ly/fcc-relaxing-cat inside the img tag. Althrough I see that the text in the alt attribute is correct. Also, did you forget the = for the src attribute and the indentations?

Try changing it to https://bit.ly/fcc-relaxing-cat, and your code will look like this:

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

Thanks!
Pummarin

1 Like