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 -->
<a> Click here to view more cat photos.</a>
<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:
hbar1st
November 27, 2022, 7:14pm
2
Hi, welcome to the forum!
We see you have posted some code but did you have a question?
yes please, I dont totally understand this whole step 12. if you could help me through, I would be glad
Hey! So it says “in the text of your
element.” So you don’t want to want to get rid of your p element completely. Rather you want to add an “a” element within your “p” element with a link to the given url. Hopefully that helps!
yes, so how to do that is now my problem
you can do <p> Click here to view <a> cat photos <\a> <\p>
then include the url with the “a” element
1 Like
hbar1st
November 27, 2022, 8:13pm
7
I wrote a post explaining how to create a link within a paragraph element here.
See if it helps
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…
The issue I see is that you have a period at the end of Photo, Your code looks exactly like mine except for that part. Let me know if that helps and good luck
1 Like
Thanks to you all, i was able to pass that step
1 Like