Nest an Anchor Element within a Paragraph
See original GitHub issueChallenge [Nest an Anchor Element within a Paragraph] Now nest your existing a element within a new p element (just after the existing h2 element) so that the surrounding paragraph says “View more cat photos”, but where only “cat photos” is a link, and the rest of the text is plain text.
<h2 class="red-text">CatPhotoApp</h2>
<p>View more
<a href="http://www.freecatphotoapp.com">cat photos</a>
</p>
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">
I didn’t find any error in this code but still it shows some error… *Create a new p element around your a element. *Your a element should be nested within your new p element. *Your p element should have the text "View more " (with a space after it).
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Nest an Anchor Element within a Paragraph - Guide
The challenge introduction speaks about the existing a element and it asks you to write the paragraph into which it will be nested:...
Read more >Nest an Anchor Element within a Paragraph - Snakify
Nesting just means putting one element inside of another element. Now nest your existing a element within a new p element (just after...
Read more >Nest an Anchor Element within a Paragraph - fcc-offline
12. Nest an Anchor Element within a Paragraph ... You can nest links within other text elements. ... Let's break down the example:...
Read more >Nest an Anchor Element within a Paragraph - Scrimba.com
Learn to code with interactive screencasts. Our courses and tutorials will teach you React, Vue, Angular, JavaScript, HTML, CSS, and more.
Read more >Basic HTML and HTML5 - Nest an Anchor Element within a ...
Basic HTML and HTML5 - Nest an Anchor Element within a Paragraph: First test tracks the href of the wrong <a> element #17406...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done.
Doing a “hard refresh” on the page, then trying the challenge solved my problem.