question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nest an Anchor Element within a Paragraph

See original GitHub issue

Challenge [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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
raisedadeadcommented, Dec 12, 2016

Done.

1reaction
wmcooper2commented, Dec 5, 2016

Doing a “hard refresh” on the page, then trying the challenge solved my problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found