html The button tag is used to define a button. The syntax is . Inside the button element, you can place content, such as text or images.
html How to use button tag?
Function: Define a button.
Syntax:
<button type="button">按钮</button>
Description:
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
Everything between the 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 the form buttons.
Note:
If you use the button element in an HTML form, different browsers will submit different values. Internet Explorer will submit the text between
html button tag example
<html> <body> <button type="button">Click Me!</button> </body> </html>
Effect:
The above is the detailed content of How to use html button tag. For more information, please follow other related articles on the PHP Chinese website!