Basic HTML and HTML5 - Add Images to Your Website

It tought us img is self closeing. Is alt. …there is very little information how alt and and img are coded…together? seperate? same line.? I guess we are suppose to know this in the basic cousrse?

  **Your code so far**
<h2>CatPhotoApp</h2>
<main>

<img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg  alt=picture of 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Basic HTML and HTML5 - Add Images to Your Website

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

you have added the src atttribute to the img element (though the value should be between quotes), you can also add an alt attribute following the same syntax

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