Am stack in Adding image to my website

Tell us what’s happening:

  **Your code so far**


<image src=""afcc-relaxing-cat"alt ="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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 10; SM-A013G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

You may want to revisit the lesson.

The tag/element is not image
There is additional text after the src that you’ll need to delete

Firstly, the links name is wrong .After that,there ate too many quotation marks. It is only before&After the link.Also ,The image element is like this:

<img src="your link here" alt="alt text">

Am afraid it’s not going through

Let us see your revised code @Frank2.

What is the meaning of Attributes cannot be left empty

An attribute is a property of an element. In this lesson the element is img and there are two attributes, src and alt. The message is saying that each of the attributes must have a value (what’s in the quotes).

1 Like

<image src=“"alt="relaxing-cat”/>
Its telling me that my image elements alt attributes cannot be empty

There’s a couple of things incorrect;

  1. The element name is not image. Review the lesson
  2. You cannot use smart quotes. The need to look like this "
  3. It won’t cause the test to fail but ideally there should be a space between the closing quote of the src attribute and the alt attribute.

Ok thanks let me try i will get back to you incase of any problem.hope you wouldn’t mind

No worries. I’m here to help.

Btw, just noticed you’re using a mobile device. I’m not sure if you’ve seen the following;

If you are using a mobile device, the default keyboard does not always play well with the freeCodeCamp editor. I recommend you read the article on using a mobile device to view some tips - most importantly, check out the coding keyboards listed as they interface with the editor well.

Yes yes yes I pulled it.thanks much

1 Like

Hello am stack in adding footers

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