I
I
Ilya2018-03-11 00:07:00
HTML
Ilya, 2018-03-11 00:07:00

Type="submit" for button is superfluous?

I need a button to submit form data to the server.
I understand correctly that this is the default value for the button tag, that is, I do not need to write: ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2018-03-11
@sidni

According to the rules of good manners, one must either

<button type="submit" value="Send Request">Send Request</button>

S
Stalker_RED, 2018-03-11
@Stalker_RED

Here is a brief description
https://developer.mozilla.org/ru/docs/Web/HTML/Ele...
There, in the attributes section, type is also described.
And there are links to the specification.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question