HTML

(*-*)浩
Release: 2019-09-30 15:42:07
Original
4147 people have browsed it

HTML , while other browsers will submit the content of the value attribute. Please use input elements in HTML forms to create buttons.

Definition and usage

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 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".

Tip

Note: If you use the button element in an HTML form, different browsers will submit different button values.

Example

The following code marks a button:

<html>
<body>

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

</body>
</html>
Copy after login

The above is the detailed content of HTML

Related labels:
source:php.cn
Previous article:HTML tag Next article:HTML