Alt Attribute Error

I can’t see what’s wrong with my answer here but the ‘Run test’ keep showing ″Your alt attribute should not be empty″.

RelaxingCat

But as can be seen above, my alt attribute is not empty. So, where’s the error coming from?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg alt=RelaxingCat>

<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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Lots of folks have been making this mistake lately, and I’m not sure why.

When you set your attribute equal to a value, that value needs ""s.

So, you should have src="my/url/here", and the same for your alt.

But when i try that (″ ″) the image disappears leaving only an icon of the image and the alt attribute wrapped in (″ ″) as shown in this screenshot below:

And the ‘Run Test Bot’ will also show an additional error:
″Your image should have a src attribute that points to the image″.
As in the screenshot below

How did you try it? What does your updated code look like?

What is your updated code? I don’t want a picture. I can’t help you with a picture.

<img src=″https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg″ alt=″RelaxingCat″>

Sorry, the code doesn’t show up fully here except as in the screenshot

Ok, lemme try to post it without (< and>) at both ends:

img src=″https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg″ alt=″RelaxingCat″

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

I’m not sure what sort of quotation marks these are, but they are definitely wrong. You need to use regular quotation marks ".

Ok. I see.
Its my phone

Ah. Apple in particular has a bad habit of randomly changing things that you type in its effort to be helpful.

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