I still don't get what is the problem

it keep says that there is no src but src it right there…

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img src="https;//bit.ly/fcc-relaxing-cat/image.jpg alt="fcc-relaxing-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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

Your image tags syntax is incorrect.

The lesson says it should be https://bit.ly/fcc-relaxing-cat



An attribute should always have the following:

  1. A space between it and the element name (or the previous attribute, if the element already has one or more attributes).
  2. The attribute name followed by an equal sign.
  3. The attribute value wrapped by opening and closing quotation marks.

https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics

https://www.w3schools.com/htmL/html_attributes.asp

1 Like

Your image is not suppose to have a ; tag

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

Explanation :

  1. Your URL has a typo where you need to have https: (colon) instead of ;
  2. Your image src attribute is missing an ending quotes "
  3. have a (whitespace) at the ending of src.
1 Like