Cat Photo App - STEP 17 struggling to code this step

This is how your code should look, respecting the opening order of each tag along with correcting the alt attribute.

MODERATOR Solution removed

A <p>...text...</p> tag cannot be placed inside the alt attribute.

Hi @lvalderramavergara

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

Good Evening thank you yes I must apologize as I am very new to coding and the course I will do so moving forward

Welcome to the forum @GarthD11

That message was for @lvalderramavergara

Hi @Teller!

Thanks so much for the information. I read the Socrates Method so I can apply it to the next answers I’ll give the community.

I’m new here, so I’m still learning how all this works.

3 Likes

Hi @GarthD11 have you resolved your query?

hi @GarthD11
please use the help button

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button 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.

Hi still struggling with the same one STEP 17 HTML
the system is referring to an opening tag however the opening tag is in my code

you need to share your code so that people can help you, or please use the help button, one of the two

Hi @GarthD11 ,

Please click the RESET button to reset the given code in this step. After you do that, you should see this code, right?

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

Now, look at the example given in the instructions. In the example, there is an img element just like you have in the given code. And, in the example, the img element has been turned into a link using anchor (a) tags: an opening a tag before the img element, and a closing a tag after the img element.

You just need to do the same thing with the given code to pass the test.

Hi sorry for the late reply, below is the code I have completed so far
href"https://freecatphotoapp.com">Click here!

alt=“A cute orange cat lying on its back.”>

Do you see a HELP button in this step?

yes I clicked on it yesterday and today already

Okay, I guess you didn’t follow through on that then.

We need to see your code to help you further. Can you copy/paste it into a reply, please? After you copy it into your reply, please highlight it and use </> in this editor to format it. The other way to format your code is precede it with three backticks (```) and follow it with three more backticks.

STEP 17

<a> href="https://freecatphotoapp.com">
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"</a>

Below is the system’s response
Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName>

I feel like I am missing something

Let’s just take it a step at a time. Please click the RESET button to reset this step back to the given code. Let us know when you have done that, please.

1 Like

ok I have clicked on the RESET BUTTON now

Hi still busy with the query as I am close according to the system but I am struggling to crack it