Add an attribute to the img

I type the URL the cat photo and still the instructor stated its wrong.

What is your current code?

The cat photo. What code

My name is tara. What code

The code you have been writing for this challenge…

What is your version with the fixed url?

common mistake for all coders. even ones who are decent. you didnt space the alt correclty

I have a MacBook Pro

@codewoman With each change, post your code that you have tried and is failing. When in doubt, that is the code we are referring to.

As of the last code we’ve seen from you, you still have the wrong URL.

This is what you have/had:

<img
  src="https://www.freecatphotoapp.com/your-image.jpg"
  alt="a business cat wearing a necktie"
>

I’ve spaced it out for readability, but it doesn’t matter.

These are the instructions:

Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

You have this URL in the src attribute:

https://www.freecatphotoapp.com/your-image.jpg

and they are telling you to use this URL:

https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

All you need to do to get the above code to pass is replace the wrong URL with the right URL.

If you can’t get that to work, please show us the complete code of what you are trying.

1 Like

hello Fanstasticllc
Im still not understanding what Im doing. Also my code still dont work.

Hello
it still does not work.
I didi what was told and not working
I dont know and Im so lost of this assignment. very confuse.

What is your updated code? Please copy-paste your latest attempt into a post.

Preformatted textWhat are you talking about. I was on the attribute to image. How can you learn if you

| JeremyLT Organic Compiler
March 4 |

  • | - |

What is your updated code? Please copy-paste your latest attempt into a post.

<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>
[https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing](https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing)
<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>

Hello I tried several times.It does not work.

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

This isn’t at all how you were told to to write that element.

You need to go back to the code that we told you needed the url fixed. This is the right url but in a completely wrong image element.

<p>Hello World<p>

this is  a test paragraph


you keep saying put a code in how do i do that

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

As we said before, you need to provide all of the code when asking a question. And please follow the formatting instructions that Jeremy provided.

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