Important: If you use the button element in an HTML form, different browsers will submit different values. Internet Explorer will submit the text between
Definition and Usage
The tag defines a button.
Inside the button element you can place content, such as text or images. This is the difference between this element and buttons created using input elements.
The control provides more powerful functions and richer content than the . Everything between the and tags is the content of the button, including any acceptable body content, such as text or multimedia content. For example, we can include an image and associated text in a button and use them to create an attractive markup image in the button.
The only prohibited element is image mapping, as its mouse and keyboard-sensitive actions interfere with the behavior of form buttons.
Always specify the type attribute for buttons. The default type in Internet Explorer is "button", while the default in other browsers (including the W3C specification) is "submit".
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