Horje

How to add HTML <button> type submit Attribute

submit The button is a submit button (submits form-data)
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The button type attribute</h1>

<form action="/action_page.php" method="get">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname"><br><br>
  <button type="submit" value="Submit">Submit</button>
  <button type="submit" value="Reset">Reset</button>
</form>

</body>
</html>

Output should be:

How to add HTML <button> type submit Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin