My src attribute isn't working

Tell us what’s happening:
I’m doing the html lessons and it says I haven’t put an src attribute when I have I don’t know if this is a problem on the website or my code.

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img src= "https:
//bit.ly/fcc-relaxing-cat" alt= 
"A cute 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 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

2 Likes

Make sure to write address in the src attribute in a single line, without additional line breaks.

Hey there @Ghoste, the problem is that you needed to put the specific link provided by FCC, FCC is extremely specific so make sure you follow the instructions to the letter or else the tests won’t pass, here’s the code that I put in to pass.


<h2>CatPhotoApp</h2>
<main>
<img src= "https://bit.ly/fcc-relaxing-cat" alt= 
"A cute 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>

I’m not sure why your code did not work but I went ahead and copied and pasted the link provided and it worked fine so I recommend copying and pasting the link. Overall, you did a good job and I think it was more of a problem with the FCC editor.

Hope this helped!
Best,
Cy499_Studios

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

LOL thanks @ilenia, I completely forgot about that policy, I’ll be more careful next time :grinning_face_with_smiling_eyes:.

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