Click Me!" statement in the body."/> Click Me!" statement in the body.">
Home > Article > Web Front-end > How to set button in html
htmlHow to set button: First create an HTML sample file; then set the "" statement in the body.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
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 only prohibited element is the image map, as its mouse and keyboard-sensitive actions interfere with the behavior of the 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".
Example:
Tagged a button:
<html> <body> <button type="button">Click Me!</button> </body> </html>
Effect:
##【Recommended learning:
HTML video tutorial】
The above is the detailed content of How to set button in html. For more information, please follow other related articles on the PHP Chinese website!