HTML Form: Creating a Submit or Reset button

For a form, we would need to include a Submit button on the form so that visitors can send the information to us.

The default button text is Submit, but we can use a value attribute to display different text on the button.

<!DOCTYPE html>
<html>
<head lang='en'>     
    <meta charset='UTF-8'>
    <title>Codecrawl.com-Form</title>

</head>
<body>
<br>
Name: <input type='text' name='name'>
<br>
Phone: <input type='text' name='phone'>
<br>

Comments:
<br>
<textarea name='comment' rows='3'></textarea>
<br>
<input type='submit' value='Send'>
<input type='reset' value='Clear'>

</body>
</html>

 

 

Series Navigation<< HTML Form: Multiline textbox using textarea
HTML Form: Placeholder text >>