Whats wrong with the src?

Ive looked at a few previous posts, followed the advice, and none of it is working. The image shows up on the website but it’s not letting me move on to the next task. The src and alt attributes are both red. whats going on?

  **Your code so far**

<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>
<h3> and here I present a photo of a cat... </p>
<img src="https://bit.ly/fcc-relaxing-cat" alt="cat image">
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:

As you may have observed, that the img tag should appear inside the main section tag and there is two lines of space for this purpose. Try to add your solution into those provided free lines and I’m sure it will work out.

1 Like

That’s just the code highlighting. Red does not mean error but is just the color given to HTML attributes.

BTW, your code is passing for me.

Pretty sure all the test is looking for the is img element and the attributes. So if this is all you had, it would still pass (it does for me anyway).

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

Try resetting the challenge and try again.

2 Likes

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