Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<!-- TODO: Add link to cat photos -->
<p> Click here to view more cat photos.<a href="https://freecatphotoapp.com"</a></p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
Your browser information: I don’t know what I am doing wrong. I need help
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
hello, I see you posted some code here. But was there a question?
I’m in step 12. The statement is this “ 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.” I have tried several ways. In the same way insert the a element within the p element to create the link but it is not working. I asked for help and it would keep on saying the link for cat photos I need to create. I do not know what I am doing wrong. I have checked my typos. What am I missing or not seeing???
In the sentence:
Click here to view more cat photos.
You need to turn only the last two words into a link. So you need to nest those two words into a (a) tag. Don’t nest the dot, exclude the dot from the (a) tag.
You enclose text inside anchor tags like so:
<p> This is a paragraph and <a href="https://example.co"> this text is inside anchor tag </a>. </p>
You need to make the text cat photos (without the punctuation mark) linkable. You do this by wrapping them in an a (anchor element). In order for the words to become a link, they need to be placed between the opening tag and closing tag of an element.
<p> text </p>.
Hope this help!
Is the dot that you are referring to the “.com”?
I attempted that just now. I did
cat photos <a href= “Https: //freecatphoto.com”>
Is this correct ?
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.