Basic HTML and HTML5 - Add Images to Your Website

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

Your code so far

<h2>CatPhotoApp</h2>
<main>
<src><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt=</src>
  <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 (Linux; Android 11; TECNO KG6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36

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

Link to the challenge:

I don’t see this tag in the example in the instructions. Where did you get this from?

This doesn’t look like the alt text added in the example. Also, I don’t see a closing </src> tag in the example.

Let’s look at the example again:

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="freeCodeCamp logo">

Your img element should look very similar to that except with the URL and alt text the instructions are asking you to use.

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

Your code so far

<h2>CatPhotoApp</h2>
<main>
<src><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt=cute kitten laying down</src>
  <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 (Linux; Android 11; TECNO KG6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36

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

Link to the challenge:

Please Tell us what’s happening in your own words.

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

Also, the more you say, the more we can help!

1 Like

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