Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<a href="https://www.freecatphotoapp.com" target="_blank">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.">
<p>View more cat photos</p>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
**Your browser information:**
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15
Challenge: Nest an Anchor Element within a Paragraph
Link to the challenge:
Do you have a question?
If so, please edit your post to include it in the Tell us what’s happening section.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more information you give us, the more likely we are to be able to help.
THE TUTORIAL ASKS US TO:
Nest the existing a element within a new p element. Do not create a new anchor tag. The new paragraph should have text that says View more cat photos, where cat photos is a link, and the rest is plain text.
FIRST: lets take a look at the two elements they are talking about here.
<a href> and a
<a href> An anchor link, allows you to create a link using text.
<p> Represents a text Paragraph.
Nesting means to put one element inside another element.
In this case, they are asking you to put an
<a href> element inside the
THE LINK THEY ASK US TO MODIFY:
What this looks like :
This text contains a link
<p> This text contains a <a href="https://www.cat-photo.com" target="_blank">link</a></p>
View more photos of some cats
<p> View more <a href="https://www.cat-photo.com" target="_blank">photos of some cats</a></p>
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.