Tell us what’s happening:
// running tests
Your code should have an img element. You may have removed the img element or you have not surrounded the src attribute’s value with quotes.
Your img element should have a src attribute. You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name.
Your img element’s src attribute should be set to ‘https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg ’. You have either omitted the URL o
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>Everyone loves cute cats online!</p
<img src="image.jpg"alt"https://cdn.freecodecamp.org/platform/universal/fcc_secondary.svg">
<!-- User Editable Region -->
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
Build a Cat Photo App - Step 8
ILM
March 16, 2025, 5:06pm
2
wanyoikeblessing806:
src="image.jpg"
you should not add a new src
, your image already had one. You can try resetting the step so you restore the original img
element. Then you will need to add only the alt
attribute
1 Like
Tell us what’s happening:
Your code should have an img element. You may have removed the img element or you have not surrounded the src attribute’s value with quotes.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>Everyone loves cute cats online!</p
<img src=>
<!-- User Editable Region -->
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
Build a Cat Photo App - Step 8
Inside the <img>
tag, add the src
attribute with the following URL:
https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
Example Code
<img src="https://cdn.freecodecamp.org/platform/universal/fcc_secondary.svg">
ILM
March 16, 2025, 5:35pm
5
wanyoikeblessing806:
</p
it seems you accidentally removed a closing angular bracket >
from here
wanyoikeblessing806:
<img src=>
you have added the src
attribute but now you need to give it a value, try adding the quotes, src=""
and adding the url you are given in there
Teller
March 16, 2025, 8:27pm
6
Welcome to the forum @wanyoikeblessing806
I went ahead and combined your posts for you. In the future, just reply to the original thread to add further updates.
Thanks.