Stuck at the cat image html

Somebody plz help me. I must be a big idiot.I’m stuck(For 2 days now ) at the insert cat image to the web page. I’m getting the msgs ''Your image should have a src attribute that points to the kitten image. and your image elements alt attribute should not be empty.

<h2>CatPhotoApp</h2>

<main>

<img src=''https://bit.ly/fcc-relaxing-cat'' alt=''A beautiful 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>
1 Like

I have edited your post to include the challenge link.
In the future, please use the ask for help button for challenges.

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

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.

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 (’).

Hi @sithari321 !

As for your question, you have a few syntax errors.
The url needs to be inside the quotes and the alt description needs to be inside the quotes as well.

I would look at the fcc example again for proper syntax.
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

Hope that helps!

The quotes should be like this: src="link to image" alt="alt text"

I’m very grateful and really thanks.

Nothing seems to work for me:
Plz help

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<img src=''https://bit.ly/fcc-relaxing-cat'' alt=''fcc relaxing 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 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Add Images to Your Website

Link to the challenge:

Please do not create multiple topics for the same question. I have merged your topics.

you are using two single quotes, instead you need to use or a single quote on its own, or double quotes "

Take a close look at the sample again.

Correct use of quotes

src="https://www.freecatphotoapp.com/your-image.jpg"

Incorrect use of quotes

Do you see the difference?

The sample they gave you does not look like this.

Incorrect:

src=" "https://www.freecatphotoapp.com/your-image.jpg" "

Thank you very much. That was my mistake.

You are working in visual code

2 posts were split to a new topic: CSS challenge error

A post was merged into an existing topic: CSS challenge error

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