Home  >  Article  >  Web Front-end  >  What are the attributes of the HTML button tag?

What are the attributes of the HTML button tag?

青灯夜游
青灯夜游Original
2021-03-01 15:54:5324011browse

The attributes of HTML button are: autofocus, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, name, type, value.

What are the attributes of the HTML button tag?

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

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

[Recommended tutorial: "html video tutorial"]

Attributes of HTML

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