Coding the image

Tell us what’s happening:
could someone help please.
I am having a trouble with two of the coding, regarding image, the first ne is checked but the remaining 2 are unchecked. what is worng with my coding?

Your code so far


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

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

Make sure to read the question carefully. There are two things that have to be changed.

1 Like
  • You seem to have combined the url from the example with the url that you are supposed to use.
  • You have two img elements. You only need one.
  • In your second img, the alt property is not set correctly it is missing a =
2 Likes

actually you forgotten to put the “=” after the alt and the source link(src) was also wrong here. correct these two .And one more thing in that question demands to put image tag between and

tag and give alt text to image tag too. hope it helps remove the second image tag from the code you have mentioned .

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.

yeah sure , i understand i will try to give the appropriate hint.

2 Likes