Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p><a cat photos href="https://freecatphotoapp.com"</a></p>
<a href="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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
I am trying to complete step 12 and i am not sure where i am going wrong with code. I’ve tried adding the cat photos after the anchor and ive tried inserting it before the anchor. It for some reason won’t read cat photos.it says " Sorry, your code does not pass. Don’t give up.
Hint
The link’s text should be cat photos. You have either omitted the text or have a typo."
Please click the reset button (which looks like an arrow turning) to return the code back to its initial state.
After this, look at the preview pane and notice that the paragraph text is
Click here to view more cat photos.
And what they asked for is to turn the last two words into a link similar to below
So you need to create an anchor link that will turn those 2 words into a link without adding anything except for the anchor opening tag and the anchor closing tag.
on step 12 they basically need you to make “cat photos” CLICKABLE and you learnt that the anchor element which has an opening and closing tag helps into making a clickable text.
just to spoil a bit for your code, remove the cat photos and write it e.g cat photos </…
I am not sure how it dissappeared but im attempting to copy and paste again so you can see the code i wrote out to see where im going wrong
edit: it looks like it wont let me include p element for some reason so ill put spaces in between when typing but i did not put the spaces in the actual code
okay re-edit: its not letting me post the p element in the code for some reason not sure how to fix this. The best I can do is upload a photo from my phone of my computer screen
to post code here you must follow the instructions below:
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.