Home >Web Front-end >HTML Tutorial >What is the html submit button label code and how to use it? (example)
This article mainly introduces to you what the html submit button code is. I hope everyone has some understanding of the label of htm submit button.
The following is a form form code example:
<html> <title>HTML提交按钮&表单提交示例</title> <body> <form action="form.asp" method="get"> First name: <input type="text" name="fname" /><br /> Last name: <input type="text" name="lname" /><br /> <button type="submit" value="Submit">Submit</button> <button type="reset" value="Reset">Reset</button> </form> </body> </html>
The effect is as follows:
Through the above code, you can see the html form submission Button code button label.
Note: The
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".
I hope that through this introduction, everyone will have some knowledge about the HTML form submit button code.
The above is the detailed content of What is the html submit button label code and how to use it? (example). For more information, please follow other related articles on the PHP Chinese website!