I believe I did everything it requested but still says I'm missing the src

so I went ahead and did everything I believe it told me to but for some reason, it is continuing to tell me I failed to insert the src even though it’s right there. Can someone help me out?

<main>
<img src="https://www.freecatphotoapp.com/your-image.jpg"alt="https://bit.ly/fcc-relaxing-cat">
</main>        

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13505.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.142 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

before I edit your post to make your code formatted, that’s the picture from the example, the picture for the challenge is a different one, you need to use the link given at the end of instructions as yoursrc and use a descriptive alt, an url is not descriptive


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

My apologies thank you for the advice I’m trying to get as far along in coding as I can before college, thank you so much.

the small deatils are improtant - if I write like that you understand, a computer needs the exact things instead, it’s a really stupid brick

So I switched the img and used the proper one and now it’s saying my alt is empty what do you recommend I put there?

There is a space between " and alt, and the link to the photo is not the right one:

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

Thank you so much I was having so much trouble with that and I’m not sure why.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

I have added [spoiler] and [/spoiler] tags on the line above and below your solution code.

I hope this is my last question, Whenever I insert some elements they seem to just not work. I’m not sure if I’m doing something wrong or what the issue is.

Oops! Sorry. I did not know I couldn’t give the full answer. My bad!

2 Likes

Ok. The exercise was about inserting an image above the paragraph. You learned that in the html language inserting an image is as follow:

<img src="" alt="">

What comes between the quotes just after src=, is a web address of a photo uploaded on the web. In the exercise they asked you to put the photo with the following web address: https://bit.ly/fcc-relaxing-cat

This is your first error: you wrote this address : https://www.freecatphotoapp.com/your-image.jpg and your answer was that:

<img src="https://www.freecatphotoapp.com/your-image.jpg">

And the right answer was this:

<img src="https://bit.ly/fcc-relaxing-cat">

The second part of the exercise was to put an alt. In case the link of the image is broken, you put an alt to tell the viewer, what the photo is all about. The choice is up to you.
Your answer was:

<img src="https://www.freecatphotoapp.com/your-image.jpg"alt="https://bit.ly/fcc-relaxing-cat">

What goes in the alt section is a sentence that describes your photo, not the address of a photo.

you have already been asked, please do not give the straight answer, thank you

Ok, dude, I removed it…

good day
am facing the same problem …kindly help me out if you’ve had some help

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.