Home >Web Front-end >HTML Tutorial >What is the html submit button label code and how to use it? (example)

What is the html submit button label code and how to use it? (example)

藏色散人
藏色散人Original
2018-08-13 17:31:2021776browse

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:

What is the html submit button label code and how to use it? (example)

Through the above code, you can see the html form submission Button code button label.

Note: The

Everything between the tags is the button's content, 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 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!

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