0
If I use:
<button>Enviar</button>
is the same as using the form below?
<button type=“submit”>Enviar</button>
In other words, if I use a tag <button>
without defining the attribute type
, there is a default value for the type
defined by the browser at render time?
Thiago, note Renan’s comment on the answer: https://answall.com/a/12289/8063... the default type of the button is Submit. However, it only has "Submit" effect when it is inside a form. Outside of the form it works like any button.
– Sam
Thanks @Sam, hadn’t seen his comment.
– Thiago Krempser
Quiet! : D Your question is mt good, because mts still do not know how the button works, but already have answers that clarify the doubt. Abs!
– Sam