Home > Web Front-end > HTML Tutorial > How to use html button tag? What does the html button tag do?

How to use html button tag? What does the html button tag do?

寻∝梦
Release: 2018-09-04 15:46:19
Original
14146 people have browsed it

This article mainly introduces the types of html button tags, as well as the functions and usage of html button tags. Finally, there are usage examples. Now let us look at this article together

First look at the html button tag. How much do we know?

html button tag has three types:

  • type=”submit”: Submit button (except for Internet Explorer, this value is other browsers' default values).

  • type=”button”: Clickable button (Internet Explorer’s default).

  • type=”reset”: Reset button (clear form data).

PS: When the button tag is included in the form tag, for example:

<form action="www.php.cn">
    <button>点击</button>
</form>
Copy after login

Now let’s talk about the role of the html button tag:

Since the button defaults to submit in most browsers, if the action attribute of the form tag has a value, clicking the button will jump to the link "www.php.cn" set by it; otherwise, clicking the button will refresh The current page.

In HTML, the

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template