Search code examples
htmlhyperlinkhref

Unwanted links in HTML document


I need help about removing unwanted links in my HTML document. The problem is that every element in my document that is located after navbar is linked to the page which is last linked IN my navbar, for example, if last element in my navbar is linked to "contact.html", all other elements in the document are linked to the same page, although they are in completely different divs, and although they don't have link at all. Can someone help me remove those unwanted links?

<div>
    <h3 href="index.html"> Početna</h3>
    <h3 href="onama.html"> O Nama</h3>
    <h3 href="razvojniput.html"> Razvojni Put</h3>
    <h3 href="kolekcija.html"> Kolekcija</h3>
    <h3 href="prodajnamesta.html"> Prodajna Mesta</h3>
    <h3 href="kontakt.html"> Kontakt</h3>
</div>

Solution

  • Since you didn't post the code, I can't say for sure. It seems like you are missing the </a> tag after each link, or just after the last link.

    Edit: Based on the code you shared I would recommend using <a> tags for the links, inside or replacing the <h3> tags.