In this section, you will see the use of <button> tag in html5.
In this section, you will see the use of <button> tag in html5.In this section, we will introduce you to the button
<button> tag. Button tag is used for showing button on screen or at browser. It is
a pair tag. Content inside the button tag will be display as name of button.
you can put image or text inside the button tag. But input tag does not support
it.
1-autofocus
2-disabled
3-form
4-formaction
5-formenctype
6-formmethod
6-formnovalidate
7-formtarget
8-name
9-type
10-value
Declaration syntax of button tag in HTML5.
<button>Text area </button> |
The declaration of break line is case_ insensitive.
<!DOCTYPE html>
|
In HTML5, button tag supports some new attributes like autofocus, form, formmethod, formtarget etc. but HTML4.01 not supports them.