Add ,Submit,Reset Button HTML

Add button 

The <button> tag defines a clickable button.
Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element.

Submit Button

<input type="submit"> defines a submit button.
A submit button is used to send form data to a server. The data is sent to the page specified in the form's action attribute. The file defined in the action attribute usually does something with the received input:
<form name="input" action="demo_form_action.asp" method="get">
Username: <input type="text" name="user">
<input type="submit" value="Submit">
</form>
How the HTML code above looks in a browser:
Username:
If you type some characters in the text field above, and click the "Submit" button, the browser will send your input to a page called "demo_form_action.asp". The page will show you the received input.

Example 
type="submit"
Creates a submit button on the form.
When this button is clicked, the form data is submitted to the server.
type="reset"
Creates a reset button on the form.
When this button is clicked, the input is reset.
name=""
The button name is used to identify the clicked submit button.
value=""
Value is the text displayed on the button.

Example

<form method="POST" action="example.cgi">

<p><input type="text" name="name" size="30"></p>

<p>
<input type="submit" value="Submit Button">
<input type="reset" value="Reset Button">
</p>

</form>
Output


      submit                     reset


No comments:

Post a Comment

its cool