0
I am developing a login system, but I have two alternatives, use the type button or type Submit, which one to use?
<div class="layout_login">
<label for="sizeEmail" id="positionEmail">Email</label>
<div class="e_mail">
</br><input class="sizeEmail" type="email" name="e-mail_login">
</div>
<label for"sizeSenha" id="positionSenha">Senha</label>
<div class="senha">
</br><input class="sizeSenha" type="password" name="senha_login">
</div>
<label>Enviar</label>
<div>
<input type="submit" << AQUI
</div>
The difference is that the guy Submit submits the information in a form to a server, and the type button can be used as a normal button like opening a modal for example.
– LeAndrade
The type Submit is being used more as button.
– ViTAO