HOW TO SUBMIT A FORM IN HTML?
- SUBMIT:
<form action="thanks.html">
Name:<input type="text">
<br>
Age:<input type="number">
<br>
<input type="submit">
<br>
<input type="reset">
<br>
- RESET:
It will reset the data.
It will delete all the old data.
- REQUIRED:
For must purposes,
It can only be read and we can not edit it.
Name:<input type="text" required>
- MAX LENGTH And MINILENGTH:
To set a specific length of a name.
Name:<input type="text" maxlength="15" minilength="2">
Age:<input type="number" max="20" minilength="10">
- FOR EMAIL:
For email we write placeholder,
Email:<input type="email" placeholder="abc@gmail.com">
- FIELDSET:
We enter this before form,
<fieldset>
</fieldset>
It partitions two forms.
- LEGEND:
Legend changes the name of a specific form of a field.
<fieldset style="background _color: ";>
<legend>Basic Info</legend>
<form action="">
</form>
</fieldset>
0 Comments