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>Click here to view more cat photos.<a href ="https://freecatphotoapp.com" cat photos</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/107.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
hi there, welcome to the forum.
If you need help with step 12, please click the Reset button to reset the code to start
then notice in your preview pane that you have some plain text.
Click here to view more cat photos.
The objective is to turn the last 2 words only into a link so the end result in the preview pane will be similar to
Click here to view more cat photos .
You do this by using an anchor tag within the paragraph element.
Here’s a post I wrote about how to do this correctly.
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…
system
Closed
May 9, 2023, 2:54am
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.