Adding src attribute to an image

Tell us what’s happening:
In the code below, am am finding it difficult to put a src attribute that points to the image kitten to enable it run, kindly any assistance.

Thank you.

Your code so far


<img src="https://www.your-image-source.com/your-image.jpg">
<img src="https://www.your-image-source.com/yourimage.jpg" alt="Author standing on a beach with two thumbs up.">

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

Your browser information:

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

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

Hi @JUDYO

<img src="https://www.your-image-source.com/yourimage.jpg" alt="Author standing on a beach with two thumbs up.">

<src alt="https://bit.ly/fcc-relaxing-cat">

There is no separate tag as <src>. You have to place the value of “src” inside the "<img src="" alt="">" in this format,
EDIT: Make sure you have only one <img> tag

1 Like

Hello @Sujith3021,
Thanks for your help, kindly can you correct me where i need to coz am stuck.

1 Like

Place the link for the image, which is given in the instruction into this,

<img src="place it here" alt="add any text here">
Make sure you have only one tag which i have mentioned and remove the <src> and other <img> tag which you have added

NOTE: Also make sure you place the <img> after the <main>

:+1:
it has really worked out thank you

1 Like