I have a problem loading the page it goes directly to the footer

0

When you open the page on localhost it goes directly to the footer:

Anditdoesnotstartintheheader:

Theproblemisintheform,butIhavenoideaofpq..]code:

<formid="contact" action="mail_send.php" method="post">
    <h3>Precisa de Ajuda?</h3>
    <h4>Entraremos em contato em 24 horas úteis.</h4>
    <fieldset>
      <input placeholder="Digite seu nome" type="text" tabindex="1" required autofocus>
    </fieldset>
    <fieldset>
      <input placeholder="Digite seu email" type="email" tabindex="2" required>
    </fieldset>
    <fieldset>
      <input placeholder="Deixe o seu numero (Opicional)" type="tel" tabindex="3" required>
    </fieldset>
    <fieldset>
      <textarea placeholder="Digite sua mensagem ...." tabindex="5" required></textarea>
    </fieldset>
    <fieldset>
      <button name="submit" type="submit" id="contact-submit" data-submit="...Enviando">Enviar</button>
    </fieldset>
  </form>

And when I give f5 on the page she does not go to the top of the page she remains fixed is this normal?

    
asked by anonymous 06.01.2018 / 02:43

1 answer

1

Felipe, the problem is that you are activating autofocus in input , causing the browser to understand that that field is user-enabled, making the page roll straight to where the focus is literally. Just remove that your problem is solved.

    
06.01.2018 / 02:53