Add Images to ur Website

Tell us what’s happening:

Your code so far


<img>
<img src="https://www.your-image-source.com/your-image.jpg">
<h2>CatPhotoApp</h2>
<main>
<img src="https://wwww.your-image.jpg"alt="Author standing on a beach with two thumbs up.">
  
  <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 slee6p in the sink fluffy fur catnip scratched.</p>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; TECNO CA8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-images-to-your-website

Any assistance to this I’m not getting the code

Hey,

the src attribute on your image needs to point to https://bit.ly/fcc-relaxing-cat.

1 Like

I know but I don’t know how to insert the src

This is your code, I added some comments as hints to it.:

<img> <!-- delete that -->
<img src="https://www.your-image-source.com/your-image.jpg"> <!-- delete the link in "src" and set it to https://bit.ly/fcc-relaxing-cat, also don't forget to add the "alt" attribute with some text there too -->
<h2>CatPhotoApp</h2>
<main>
<img src="https://wwww.your-image.jpg"alt="Author standing on a beach with two thumbs up.">
  
  <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 slee6p in the sink fluffy fur catnip scratched.</p>
</main>
1 Like

Thanks so much but the code is still the same thing is asking me to

Your image should have a src attribute that points to the kitten image.

This is the solution:

<img src="https://bit.ly/fcc-relaxing-cat" alt="Relaxing Cat">
<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 slee6p in the sink fluffy fur catnip scratched.</p>
</main>

Does that work for you?

1 Like

Thanks very much… Coding is not easy I guess

Yes, it’s not easy but don’t worry, keep going and you will make progress! :slight_smile:

1 Like

It is learning a new language.
At first you learn a few words just enough to get by.
Then you get the gist of it but still make a bunch of grammatical errors.
After a while of practice you start getting it but still speak with a foreign accent.
With lots of practice you become fluent and start being able to think in that language rather than having to translate it in your head first.
This process is natural don’t feel bad about it, be proud that you have taken up the challenge that many shy away from.

2 Likes