I m having an src error

That’ s my code, and it says ‘’ Your image should have a src attribute that points to the kitten image.’’ But i wrote src there? What’ s happening?

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

<h2>CatPhotoApp</h2>

<main> 

  <p>Kitty ipsum wgawf gaebae whearwh the grass sniff. </p>

  <p>Purr dvasv gfwg truk68 q3RQ1 catnip scratched. </p>

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

  <p>Kitty ipsum gethehjyk etkteko rth the grass sniff. </p>

  <p>Purr dvasv gfwg truk68 q3RQ1 catnip scratched. </p>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

It looks like you have two image elements, each with a different source. Delete the one that does not use the correct url.

2 Likes

Hi
in your source code, your <img> element has closing tag </img> !!!
the <img> tag is an empty tag and does not have a closing tag, if you delete them probably your problem gone but if not say it again with more details
GoodLuck :slightly_smiling_face:

1 Like

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