Write a program using HTML to create a from and submit it with personal data like name, address and standard.
Answers
Answer:
Program using HTML to create a form and submit it with data like name address and the standard is given below:
HTML provides various attributes, one of them is forms. Through forms, users can enter the data and submit the information on the website. The forms retrieve the data using any Backend Language.
<form action="">
<div class="form-info">
<label for="name">Name: </label>
<input type="text" name="name" id="name" placeholder="Enter your name">
</div>
<div class="form-info">
<label for="email">Email: </label>
<input type="email" name="name" id="email" placeholder="Enter your email">
</div>
<div class="form-info">
<label for="address">Address: </label>
<textarea name="address" id="address" cols="30" rows="10"></textarea>
</div>
</form>
In the above program user can input:
- Name
- Email-id
- Address
- The divs are created so that one can beautify the form using CSS.
This is how one can make a form on HTML.
Explanation: