+ 1
A sentence I'm trying to make turns into a link
So here's the code I have so far <p><a href="https://www.epa.gov/bedbugs/bed-bugs-appearance-and-life-cycle" target="_blank" /><big>Credits/sites</big></p> <br /> <img src="two-bed-bugs_2.jpg" Border="2px" alt="" /> <p>two adults in a petri dish</p> The last paragraph I just want it to be there like normal text but instead I get a link that goes to the epa link above. How do I prevent this from happening? (just making a site about bed bugs to practice my html>
2 Respuestas
+ 3
You forgot to close the <a> link tag in your code. Just add </a> before your </p> tag.
As an additional note, avoid using <big> tags in your html. Instead, use header tags <h1> to <h4> to size your text, in case you`re not using any CSS styling in you code.
Example code:
------------------
<nav>
<h3>
<a href="http://thislink.com" target="_blank">LinkText 1</a><br>
<a href="http://thatlink.com" target="_blank">LinkText 2</a>
</h3>
</nav>
<p>
<img src="some-image.jpg" border="0" alt="cake photo"><br>
<h2>The cake is not a lie!</h2>
But there's science to be done... and the night just started.
</p>
------------------
0
If you don't close the <a> tag, it will select everything else as the link.