+ 2

Why is all my text hyperlinked?

Why is all my text hyperlinked? I've just started to learn HTML about a week ago and I'm creating a very basic website (just with HTML and a bit of CSS at the moment). I want the contents to link to the relevant sections of the web page below, but ALL my text is hyperlinked - including the paragraph headings and the text below it. I would truly appreciate some help here. Thanks in advance. Here's my HTML so far: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>The Rise of Democratic Populism</title> </head> <body> <h1 style="text-align:center">The Rise of Democratic Populism</h1> <hr /> <ul> <li><a href="#pop-causes">Populism & Its Causes</li> <li><a href="#east-europe">Eastern Europe</li> <li><a href="#west-europe">Western Europe</li> <li><a href="#unstam">USA</li> </ul> NOTE: Content below should NOT be hyperlinks <p> <h3 id="pop-causes">Populism & Its Causes</h3><br /> Populism is generally defined as... </p> <br /> <p> <h3 id="east-europe">Eastern Europe</h3> </p> <br /> <p> <h3 id="west-europe">Western Europe</h3> </p> <br /> <p> <h3 id="unstam">USA</h3> </p> <br /> <!-- Contact form starts here --> <div class="section"> <h3>Contact Me</h3> <form> <input name="name" type="text" /><br /> <input name="email" type="email" /><br /> <textarea name="message" ></textarea><br /> <input type="submit" value="Send" class="submit" /> </form> </div> <!-- Contact form ends here --> </body>

28th Jun 2018, 10:56 PM
Mathew McRae
Mathew McRae - avatar
4 Respostas
+ 5
Um, maybe you didn't include the </a> closing tag.
28th Jun 2018, 11:01 PM
Hoàng Nguyễn Văn
Hoàng Nguyễn Văn - avatar
+ 5
Mathew McRae In your <a> tags you need to close them with </a> as this is making all the other text hyperlinked
28th Jun 2018, 11:05 PM
Agent
Agent - avatar
+ 2
Thank you very much, Nguyen. You were right! :-)
28th Jun 2018, 11:06 PM
Mathew McRae
Mathew McRae - avatar
+ 1
Thanks Agent! :-)
28th Jun 2018, 11:07 PM
Mathew McRae
Mathew McRae - avatar