When loading site skips to the middle [closed]

0

Well this is my first question here, I created an account on stackoverflow just for this because I do not find the answer anywhere!

I just renewed that link page hosted by hostinger in a free plan! When it is loaded it jumps to the end of the site or to the middle! I have already done several optimizations of performance but the error keeps happening! Could you help me?

    
asked by anonymous 09.03.2018 / 21:58

1 answer

1

The problem is the autofocus attribute in the field:

<input type="text" name="nome" id="nome" required autofocus>

When the page loads, input automatically gains focus , scrolling the page to where it is on the page

To resolve this, simply remove:

<input type="text" name="nome" id="nome" required>
    
09.03.2018 / 22:08