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 <a href= cat photos></a>.</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/105.0.0.0 Safari/537.36 OPR/91.0.4516.16
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
MY ISSUE IS STEP
I don’t know how to do the step 12
You can see the words cat photos underlined next to the image in the preview now. That’s your link; feel free to give it a click.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by nesting these words inside of a new anchor element.
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 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/105.0.0.0 Safari/537.36 OPR/91.0.4516.16
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
MY ISSUE IS STEP 12
I could not do it. Please help.
Question.
Step 12
You can see the words cat photos underlined next to the image in the preview now. That’s your link; feel free to give it a click.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by nesting these words inside of a new anchor element.
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 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/105.0.0.0 Safari/537.36 OPR/91.0.4516.16
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
Please help me.
I can’t pass through step 12.
Question
You can see the words cat photos underlined next to the image in the preview now. That’s your link; feel free to give it a click.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by nesting these words inside of a new anchor element.
To nest elements within each other, for example, you could so something like: <div><p></p></div>.
In this case, the <p> element is being nested within the <div> element.
As for text, you want to put the text that the step is asking you to write down as well.
For example: <p>*put your text in here!*</p>
The text goes in between both the beginning and ending tags.
Hope this helps!
The anchor element was covered in the last few steps before this one. You can take another look back.
Basically just like what you did in step 1 and 2 when you nested some text inside the h1 and h2 elements, making a link is the same but with the anchor tag.
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button (which looks like a ?) located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.