button. Inside the button element, you can place content, such as text or images."/> button. Inside the button element, you can place content, such as text or images.">

Home >Web Front-end >Front-end Q&A >How to use html button tag

How to use html button tag

藏色散人
藏色散人Original
2019-05-26 09:11:123789browse

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.

How to use html button tag

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 , while other browsers will submit the contents of the value attribute.

html button tag example

<html>
<body>
<button type="button">Click Me!</button>
</body>
</html>

Effect:

How to use html button tag

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!

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
Previous article:How to use html bdo tagNext article:How to use html bdo tag

Related articles

See more