but is more powerful in terms of controllability. The Forms part of the HTML 4.01 specification specifies the following control types: buttons, checkboxes, radio buttons, menus, text input, file select, hidden controls, object controls. In addition to buttons/menus/object con"/>
but is more powerful in terms of controllability. The Forms part of the HTML 4.01 specification specifies the following control types: buttons, checkboxes, radio buttons, menus, text input, file select, hidden controls, object controls. In addition to buttons/menus/object con">
Summary of the theme in one sentence: has the same effect as but is more powerful in terms of controllability.
The Forms part of the HTML 4.01 specification has the following control types: buttons, checkboxes, radio buttons,
menus, text input, file select, hidden controls, object controls.
Except for buttons/menus/object controls, all are completed by .
What I’m talking about here is and .
and As specified in the specification: and can be used to make form buttons. Please refer to the detailed definitions of these elements for different button types. It should be noted that supports richer presentation functions than .
Some differences Everyone knows that can be used like this (in fact, it must be used like this): , must be closed like this. Instead of: . Because the opening tag is required, but the closing tag is prohibited.
is more powerful than in that it can contain content. Its value is not written in the value attribute, but included in the tag.
For example: OK. The opening tag and closing tag of are required. This way you will get something like
formalized dominance.
You can write like this:OK, I
do., or even insert an image: , it's great.. Somewhat similar to , but it is obviously much more powerful.
The last thing to note is that images included by cannot use hotspot maps, that is, they cannot use , this is illegal. Of course, it can no longer contain items such as input, select, textarea, label,
button, form, fieldset, iframe, and isindex (deprecated) elements.
Not original, sourced from the Internet.
The above is the detailed content of The difference between BUTTON tag and INPUT tag. For more information, please follow other related articles on the PHP Chinese website!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn