I did what the tutorial said about nesting anchor elements within a paragraph but it keep on saying I should have one “a element” and it should link to the freecatphotoapp link when it is already linked and I’m wondering how to fix it
View more <a target="_blank" href="https://www.freecatphotoapp.com"> cat photos</a>
User Agent is:
Mozilla/5.0 (X11; CrOS x86_64 13597.105.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.208 Safari/537.36.
Challenge: Nest an Anchor Element within a Paragraph
Link to the challenge:
Go back and re read the directions. You didn’t create a new p element or nest your a element within it.
How do I create a new p element I thought I did with the
<p... </p> and nested everything in that
<p>Click here to view more <a href="_blank" target="https://www.freecatphotoapp.com">cat photos</a>.</p>
The link in this comment doesn’t work for me. In your first question there is no p element that contains (nests) your a element.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (
</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
Hi @clchoa !
Welcome to the forum!
I have edited your posts so now we can see your code.
In the future, please use the ask for help button which includes your code and the challenge link.
As to your question, if the error message says you should only have one
a element that means you have two anchor tags in your code when there should only be one.
We will need to see your full code but that is probably the issue.
Please post your full code with the formatting I have shown you.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.