How can` image have an src attribute that points to the kitten image

how can` image have an src attribute that points to the kitten image

<img src="url/to/image" alt="...">

The image URL for that exercise is in the instructions.

<img src="https://images.pexels.com/photos/271955/pexels-photo-271955.jpeg?cs=srgb&dl=adorable-animal-art-271955.jpg&fm=jpg" alt="testing"/>

above HTML not satisfy the challenge
it shows error:
Your image should have a src attribute that points to the kitten image.

@GaneshanNT @greatg
add this to your program after main tag,

 <img src="https://bit.ly/fcc-relaxing-cat"alt="no image found">
  
1 Like

@GaneshanNT
getting the image in our html we have to use src it will search and retrive the image from location specified.location may be global(i.e in pc where we store html and image in same folder) either https(location of any image on internet for this we have to give https before image);

1 Like

i have wrote the" https… " but i couldn’t understand the use of writing "no image found’’ it didn’t work for me

1 Like

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.

2 Likes

pls can tell me why does it say" ur image should have a src that points to the kitten image"?

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

<img src= "https://bit.ly/fcc-relaxing-cat " alt="fcc-relaxing-cat " width="400"  height="300">
1 Like

i clicked ASK FOR HELP and asked this question but it replied’’ new users can only put one embedded media item in a post’’ i don’t know why :face_with_monocle: that’s why i asked u . i would be happy if u would help me

it needs to be exactly as required, for example no space at the end


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

thank you very much it worked for me

1 Like