input type="submit" in HTML is used to create a submit button in a form. When a user clicks this button, it sends (submits) the form data to a server for processing.In simple words, a submit button helps users send the information they entered in a form, like login details, contact forms, or registration data.
A button that submit the form.<input type ="submit"> defines button for submitting form data form-handler. The form-handler is typically server page with the script for processing input data. the form -handler is specified in the forms action attribute.
⭐HTML Input Type Submit Syntax and Example
program
⭐HTML Input Type Submit Syntax and Example
Explain Program
<!DOCTYPE html>
- Declares the document type.
Step 2 ]
<html>...</html>
- The
root element that wraps all content of the webpage.
<body>...</body>
- Contains
everything visible to the user on the web page.
Step 4 ]
<h2>Submit
Button</h2>
- Displays
a heading that says "Submit Button".
<p>...</p>
- paragraph explaining <input type="submit"> does:
- It
creates a button that submits the form data.
Step 5 ]
First name:<br>
<input type="text" name="firstname" value="sanjay"><br>
<input type="text" name="lastname" value="jadhv"><br><br>
- Creates
two text fields:
- One
for First Name with a default value "sanjay"
- One
for Last Name with a default value "jadhv"
- <br> line break, making each input appear on a new line.


No comments:
Post a Comment