HTML Reset Button Example
<input type="reset">
Reset tag is a button that resets the contents of the form to default values.
HTML Reset Button Example
program
HTML Reset Button Example
Explain Program
Step 1 ]
<!Doctype html>
- <!doctype html> always be the first line of any HTML document.
<!Doctype html>
- <!doctype html> always be the first line of any HTML document.
Step 2 ]
<html> and </html>
html is the root element.
<html> and </html>
html is the root element.
Step 3 ]
<body> and </body>
body is main content area.
All visible content inside to the <body> tag
<body> and </body>
body is main content area.
All visible content inside to the <body> tagStep 4]
form submitted it send data to server/action.asp
Step 5]
Last name :<input type="text"
name="lastname" value="Rad"><br><br>
text field labeled Last name
Step 6]
Step 7]
<input type="reset">
Create a reset button
click reset button their original value, clear form and restore default value.
No comments:
Post a Comment