Can anyone help me? I cannot solve this problem for the past few hours. Tried few suggestions but it did not work.
Nestin means your <a>
tags should be inside the <p>
tag that you created.
Example:
<p>i'm a paragraph <a>i am an anchor</a></p>
In the future, please copy-paste your code into your forum post. It is very difficult to help from screenshots.
Can you do what @JeremyLT has advised. Can you post your code.
By the looks of that screenshot you’ve got two <a>
s in there. You should probably get rid of the one that is not in the <p>
.
<h2>CatPhotoApp</h2>
<main>
<a href="https://freecatphotoapp.com" target="_blank">cat photos</a>
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<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>
<p>View more cat photos
<a href=”http://freecatphotoapp.com" target=”_blank”>cat photos</a>
.</p>
</main>
It doesn’t work at all
<h2>CatPhotoApp</h2>
<main>
<a href="https://freecatphotoapp.com" target="_blank">cat photos</a>
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<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>
<p>View more cat photos
<a href=”http://freecatphotoapp.com" target=”_blank”>cat photos</a>
</p>
</main>
<p>View more
<a href=”http://freecatphotoapp.com" target=”_blank”>cat photos</a>
</p>
first you need to use the a
element already present, not create a new one
then it seems you are using the wrong quotes
this work ""
and these instead are not valid: “”
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 (’).
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.