Learn HTML by Building a Cat Photo App - Step 15

can you delete the middle > for me? (there should be a space there)

also here, can you delete the middle >< and put a space instead?
Also want you to delete the >= and make it a plain = there

It really, really helps if you read everything that we say.

Do not put a bunch of < > everywhere.

Opening HTML tags, like a and img all have this format:

<tagname attribute1="value" attribute2="value">

The img element you had when you started this step looked like this already. You should make zero changes to the original img element. You must not break this format or your code will not pass. We’re trying to tell you how to fix the changes that you made to the img element.

back.>"</a>

and one more correction is to make is to switch the order of the >"
so they should be "></a> in this way after you are done

I almost got it , the link is clickable but still missing one thing.

<a href="https://freecatphotoapp.com"> <img src"https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back"></a>

You deleted the = here. A = between an attribute and value is mandatory.

<a href="https://freecatphotoapp.com"> <img src"https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back"></a>

okay one more thing, but then if it works, i want you to promise to go back and redo the steps 1 to this point again. (promise?)

I see Jeremy already responded as I’m writing but I will go ahead and repeat to be sure.

In this line of code you posted, I want you to find the word “src”
and put an equal sign on the right side of it so it look like this
src="

try and again, if you are good after that, please do try the previous steps again from the start. You can use a different browser or you can restart each step to try it again.

1 Like

I added the = sign and it’s not working.

<a href="https://freecatphotoapp.com"> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back"></a>

What is your full code?

Here it is

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."> <a href="https://freecatphotoapp.com"> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back"></a>

this code passes when I try it.
Can you click on Restart Step, then force a browser refresh CTRL-F5
Then come back here and copy this line to the step (overwriting the img line of code).
Let me know if that works.

here’s that code again for ref:

I’m meant absolutely all of your code, not just that single line.

That single line has two img elements but you most only have one.

that was the full code.

So you deleted the main element, the p element, and everything else? You need to undo all that stuff you deleted then. You should have 11 lines of code.

Thank you very much. It finally passed. I appreciate all of your assistance.

I am glad you passed. I hope you will retry steps 1 to 15 again.

1 Like

For future challenges, you should never delete all of the code except for a single line.

I am definitely gonna practice those steps a few more times. Noted Jeremy thanks!

So I got stuck at this as well. I went through this feed and worked it out along with all the feedback given.

I typed this

before the image source and alt that was there from previous lesson, I checked it had no changes to it.
then right after this is typed

I got a fail. I did however refresh and do the exact same thing and I used the suggestion of doing a browser refresh. typed it again and it passed.

I double triple checked to make sure I typed it right when it failed. Why did the fail happen?

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.

Thank you.