Tag Button

Description
Tag <BUTTON> creates buttons on the web page and reminds the result, which is received with the help of tag <INPUT>. In contrast to this tag, <BUTTON> offers extended facilities of the buttons’ creation.
Tag <BUTTON> is must be located in the form, which is defined by the element <FORM>. Though, browsers don’t show messages about a mistake and work with the tag <BUTTON> correctly, if it is used independently. But if it is necessary to send the result of pressing the button to the server, so place <BUTTON> into the <FORM>.
<form>
 
	<button>...</button>
</form>
Parameters
Disabledblocks the access and changing of the element.
Typetype of the button is common, for sending of the form data to the server or for the cleanup of the form.
Valuevalue of the button, which will be sent to the server or read via scripts.
Closing tag
Is optional.
The Description of Tag <BUTTON> Parameters
DISABLE Parameter
Description
Blocks the access and changing of a button. In this case it is defined grey and inaccessible for activation by the user. Moreover, such button can’t receive the focus by pressing the button Tab, mouse or other way. Nevertheless, such condition of a button can be changed via scripts.
<button>...</button>
Arguments
No
Default value
This value is disabled by default.
Analogue CSS
Clear
TYPE Parameter
Description
Defines the type of the button, which determines its behavior in the form. The buttons of all types are not differ from each other, but each one has its own functions.
<button>...</button>
Arguments
Resetthe button for cleanup of the form data and replacement of the values to the original value.
Submitthe button for sending the form data to the server.
Default value
Button.
VALUE Parameter
Defines the value of the button, which will be sent to the server. The pair “name=value” is sent to the server, where the name is defined by name parameter of the tag <BATTON>. The value can both coincide with the text on the button and be independent.
<button>...</button>
Arguments
Any text line.
Default value
No
Form maker
PHP contact form
Form creator
Application form