Much of my site has become a link

Asked

Viewed 40 times

-2

Can anyone tell me what the problem is? I was trying to make a common site and made the login page.php, but when I put the link in the menu of index.php my entire site became a link. Now everywhere I press and various phrases are appearing as a link going straight to the login page I don’t understand why this, has happened to someone else?

    <i class="fas fa-bars"></i>

    <ul id="menu">
        <li><a href="index.php">Inicio</a></li>
        <li><a href=""> Anuncios</a></li>
        <li><a href="">Contato</a></li>
        <li><a href="login.php">Login</li>

    </ul>
</nav>

this is the menu part

  • 2

    Maybe it’s because your last link in the menu does not have </a>

  • people seem to know I accidentally created kind of system of anything that the person clicks it has to log in like this, it’s just like that or it will be some mistake?

1 answer

6

You must correct that passage:

<li><a href="login.php">Login</li>

For that reason:

<li><a href="login.php">Login</a></li>

Probably the lack of tag closure </a> is what caused the confusion.

  • Obg missed this attention even though I didn’t notice

Browser other questions tagged

You are not signed in. Login or sign up in order to post.