I’ve been stuck here for a while please help I can’t add alt

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg <alt=smiling 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 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Mobile/15E148 Safari/604.1

Challenge: Add Images to Your Website

Link to the challenge:

Hi @Sakani !

You have a few syntax errors.

You are missing an > for the img

You are missing quotes for the src and alt attributes.

This is the correct structure for img tags.

<img src="" alt="">

Also this < shouldn’t be here

You forgot these bad boys around src and alt:

“content”

Besides the missing quotation marks, you also didn’t close your img element.

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