Difference between BUTTON and INPUT
A general topic:
With
Same role, but more powerful in terms of manageability.
The Forms section in the HTML 4.01 standard has the following control types: buttons, checkboxes, radio buttons, menus, text input, file select, hidden controls, and object controls. in addition to buttons/menus/object controls
Complete.
What I am talking about here is:
And
.
And
Standard Middle Name: available
And
To create a form. For details about the button types, see the definition of these elements. Note that
Ratio
Supports richer performance features.
Some differences
Everyone knows
It can be used in this way (in fact, it must be used in this way ):
Must be closed in this way. Instead:
. Because the start label isRequiredAnd the close tag isDisable.
Ratio
What's worse is that it can
Included content. Its value is not written in
value
Attribute, but included in the tag. For example:
OK
.
Both the start and end tags are
Required. In this way, you will gain the dominant power of style.
You can write as follows:
OK, I do.
, Or even insert an image:
, it's great.
. Similar
But it is much more powerful.
Note that
You cannot use hotspot maps.
This is invalid. Of course, it cannot includeinput
,select
,textarea
,label
,button
,form
,fieldset
,iframe
, Andisindex
(Not recommended) element.