Tell us what’s happening:
Hi Team.
I am stuck on challenge step 12. I have followed the given solutions here but I still do not get. Kindly someone get me out of here. Below is my current code.
cat photos
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p><a href="https://freecatphotoapp.com"> cat photos</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:
What happened to the rest of the text that was in that paragraph?
hi there, please click the reset button (which looks like an arrow turning) to reset the code back to its starting state.
After that you must understand the objective here.
You have a paragraph element which in the preview pane shows up like this
Click here to view more cat photos.
And your objective is to make this plain text have a link inside it like below
Click here to view more cat photos .
You can learn how to make the last two words into a link in my post below
Many people struggle with making an html link for the first time when that link is enclosed within a paragraph element. (Such as in step 12 of the cat photo app).
This post is meant to guide you by giving you some tips of how this is done.
To begin, we are presented with some plain text in a paragraph element such as below:
<p>This is some boring text without any links.</p>
And let us now try to turn the word -links- into a clickable link by using an anchor element.
Here goes:
<p>This is s…
1 Like
Thank you so much. I have made it after hours of trying, simply because you explanation made it easy to understand the ambiguous instructions. Thank you.
1 Like
I am good now, thank you.
system
Closed
June 8, 2023, 9:59am
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.