Adding an image to my website

Adding an image to my website
0

Tell us what’s happening:

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>
<img scr="https://www.bit.ly/fcc.com" alt="relaxing cat."/>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-images-to-your-website

Welcome to forum! :slight_smile:

You have couple of mistakes inside your code.

Inside img tag, you mispelled src with scr…

To complete the challenge,you should provide the url that is given to you inside the challenges,try to copy it in right way.

1 Like

use that img tag after the main tag not after the closing main tag

its still not going through

i have tried the url but it seems I still got some errors

What errors are you getting?

Have you tried this url "https://bit.ly/fcc-relaxing-cat" ?

@Pratyaksh7 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.

Thank you for understanding.

1 Like

I got it… I just joined this forum, so I was not known about this…

1 Like

Your image should have a src attribute that points to the kitten image.

I guess you didn’t provide an actual url to that image.

Try to copy the url from challenge into src attribute.

https://bit.ly/fcc-relaxing-cat