Pls is this not correct?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<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>
<img src="https://www.shaadidukaan.com/vogue/wp-content/uploads/2019/08/hug-kiss-images.jpg"
</main>
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:

Check if the img tag is correctly closed :slight_smile:

I have checked and it’s rightly closed because the image actually displayed but freecodecamp has refused to grant me access to the next lesson

Html is quite permissive.
Just because the image shows with incorrect syntax on one browser does not mean that it will on another.
Your code above is missing the tag closure on the img tag. close it and you should pass the test

Ok, Thank you, but how do i close the tag?

just add > to the end of the line starting <img

thank you, but its still not working
below is the response i get
Your image should have a ```
src


attribute that points to the kitten image.

Your image element's alt attribute should not be empty.
  1. You were asked to use this URL https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg for the image.

  2. You didn’t add an alt attribute as asked for.

i dont really understand the adding of alt attribute stuff. how do i go about it? thank you

Please, read the challenge text again. It tells what the attribute is and how to use it and it shows example code.

thank you so much… i got it

1 Like

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