A newcomer Here

Greetings, a complete newcomer to coding. I am stuck on the learning page.

Basic HTML and HTML5: Add Images to Your Website

Can someone help me with this code

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

Test results show this. I am so new to coding that I have no idea what I am doing wrong. Any help would be appreciated.

" // running tests Your image should have a

src

attribute that points to the kitten image. // tests completed"

The img tag code you pasted here is using left/right double quotes instead of the standard ascii double quote. Change those quotes and it should work. If you are copy/pasting from a text editor, make sure you are using plain text mode.

Your image should have a src attribute that points to the kitten image. What exactly would it mean?

Let’s try to add an image to our website: Insert an img tag, after the main element.
Now set the src attribute so that it points to this url: https://bit.ly/fcc-relaxing-cat
Finally don’t forget to give your image an alt text.

Can you guide me here please? Sorry for being so dumb but not able to make out what is wrong. Copied and pasted as text. Actually copied to notepad and edited there and pasted.

Copy/paste the following into the lesson:

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

The above is what you originally posted except the double quotes are standard ascii double quotes. Your tag is correct, but the double quotes are not.

1 Like

Thank you very much. I understand now. How do we get the standard ascii double quotes normally. Appreciate your patience in explaining things to me.

I’ve edited your post for readability. 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.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums