Finding it difficult to add an image

i’m stucked at the adding image . Your image should have a src attribute that points to the kitten image.
Your image element’s alt attribute should not be empty.

Your code so far<img src=¨https://bit.ly/fcc-relaxing-cat¨ alt=¨Relaxing cat¨/>


<img src=¨https://bit.ly/fcc-relaxing-cat¨ alt=¨Relaxing cat¨/>
<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>

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

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

use quotes key on keyboard it has double quotes and single quote.
seems you are using some other symbol.

1 Like

thanks so much, i am using the right quotation button . but is still not working :tired_face:

  1. It says: “Within the existing main element, insert an img element before the existing p elements.” Your image is outside of it.

  2. Did you change the quotes for the alt attribute too?

1 Like

this symbol is not a valid symbol in programming, you need to use double quotes "" or single quotes ''

if you have made changes and still does not work, please post your new code

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

if you say within the main element that means i t will be after the h2 element before the 1st p element. I tried that now it did not work.
How do i change the quotes for the alt attribute. alt= ¨Relaxing cat¨/>

You need to put it after <main>. And you are still not using proper quotes ("").

1 Like

I read your text like 1 million times before i could get what you were saying :rofl: you said the quote i was using is not acceptable in programming, so i used a single quotation mark { '} which on my keyboard is together with { ?} mark and boom it worked. thanks so much. i have been on this for 1 hour. you are a life saver.
Please how do i save my work to continue later?

thanks its my quote that was wrong , i did it before my h2 element

if you have an account the challenges you have done are marked as completed

to save the code for a challenge not yet completed you can use Ctrl+S to save it in your local storage (it will be deleted if you clesr browser cache and will be accessible only from that specific browser)

1 Like

okay thanks so much, for your response