Paks
June 23, 2022, 11:38am
1
Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more href="https://freecatphotoapp.com".</p>
<a href="https://freecatphotoapp.com">cat photos</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/100.0.4896.88 Safari/537.36
Challenge: Step 12
Link to the challenge:
You successfully built the link, it’s just in the wrong place. Look at the screen:
Up at the top is where the link should be, but you have this:
<p>Click here to view more href="https://freecatphotoapp.com".</p>
That href="https://freecatphotoapp.com
, that is where your anchor should go, not after the p
. You want it to flow with the text.
1 Like
Paks
June 23, 2022, 12:12pm
3
Thanks for the reply but I’m still lost
Can you share your latest code?
1 Like
Paks
June 23, 2022, 12:47pm
5
<p>Click here to view more <a href="https://freecatphotoapp.com"> </p>
Paks
June 23, 2022, 12:49pm
6
Sorry, I’m New to programming and I don’t really understand what to send
That’s cool, most people have to be taught how to 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 (').
1 Like
OK, that is closer. But the anchor is incomplete. You need a closing anchor tag, </a>
I would expect a closing tag and some text in the anchor. For example, if I had:
<p>Visit the <a href="https://www.freecodecamp.org/learn/">FCC site</a>!</p>
That would show up as:
Visit the FCC site !
The text “FCC site” is inside the anchor, so that shows up as the clickable link text. You need to do something similar.
Paks
June 23, 2022, 12:56pm
9
Thank you very much. I understand clearly now
Paks
June 23, 2022, 1:00pm
10
<p>Click here to view more cat photos.</p>
this is what I have as my ‘p’
<a href="https://freecatphotoapp.com">cat photos</a>
This is what I have as my ‘a’
OK, put the three backticks on their own line.
OK, so you have the basic components there.
See in the p
where you have “cat photos”? You need to replace that with the anchor you hav e below. You want it to be part of the p
, so that the “cat photos” in the anchor is part of the sentence. Consult the example I gave you. Notice that the a
is nested inside the p
, not coming after it.
Give it another shot.
1 Like
Paks
June 23, 2022, 1:06pm
12
Done.
Thank you very much. I really appreciate.
1 Like
system
Closed
December 23, 2022, 1:06am
13
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.