Tell us what’s happening:
hello.I am currently on step 12 and although i have the used the forum solution for the code i have not been successful.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
<ahref=""https://freecatphotoapp.com">link to cat pictures</a>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.5304.107 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 12
<p>Click here to view more cat photos.</p>
<a href="https://freecatphotoapp.com">link to cat pictures</a>
This is the result after step 11. Step 12 says to replace the words"cat photos " in the text of the P element to a link to “https://freecatphotoapp.com” by adding opening and closing anchor (a ) tags around these words. this is where i am getting confused
The code you copied is not a solution. It is broken code that someone posted here so that they can get help.
(The forum is not a place to get code but a place to post broken code and get help. )
I suggest you reset this step back to its initial state.
Then use what you have learned about anchor tags and try to turn the cat photos phrase into a link.
If you need help with that after giving it a few tries, please respond here and show us what you have tried.
ok thank you. i have found this step really frustrating because when i have tried what i think is right which is quite basic it still fails. i will try a few more and show you . thank you so much
I’ve edited your code 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.
Your code is not readable unless you go to the trouble of posting it correctly on the forum.
I have posted the instructions here for you, please try them