Tell us what’s happening:
Describe your issue in detail here.
I tried an anchor a wothin the p element but it don’t seems to work Iam doing somethink wrong please help
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 <a href="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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge:
b4c1c
December 12, 2022, 6:58pm
#2
Hi, Florian
You are almost there. This is the same as previous task.
Hint: you have typo
1 Like
hbar1st
December 12, 2022, 7:15pm
#3
hi there, your anchor element is not correctly formed.
The href attribute is supposed to contain the location of the website that the link ‘links’ to.
the phrase cat photos
is meant to be the text of the anchor.
You also are missing the period that was at the end of the sentence.
I wrote a post explaining how to create links within paragraphs that you may find helpful
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
Thanks a lot for taking the time
1 Like