Update index.md (#29447)

More informative description
This commit is contained in:
abhaybaiju
2018-12-11 21:44:58 +05:30
committed by Tom
parent 386b993f24
commit 0ac7d677ba

View File

@ -34,27 +34,29 @@ Form contains control elements which are wrapped around ```<form></form>``` tags
Code example: Code example:
```html ```html
<form> <form>
<label for="username">Username:</label> <label for="username">Username:</label>
<input type="text" name="username" id="username"> <input type="text" name="username" id="username">
<br> <br>
<label for="password">Password:</label> <label for="password">Password:</label>
<input type="password" name="password" id="password"> <input type="password" name="password" id="password">
<br> <br>
<input type="radio" name="gender" value="male">Male<br> <label for="age">Age:</label>
<input type="radio" name="gender" value="female">Female<br> <input type="number" name="age" id="age">
<input type="radio" name="gender" value="other">Other <input type="radio" name="gender" value="male">Male<br>
<input list="Options"> <input type="radio" name="gender" value="female">Female<br>
<datalist id="Options"> <input type="radio" name="gender" value="other">Other
<option value="Option1"> <input list="Options">
<option value="Option2"> <datalist id="Options">
<option value="Option3"> <option value="Option1">
</datalist> <option value="Option2">
<br> <option value="Option3">
<input type="color"> </datalist>
<br> <br>
<input type="checkbox" name="correct" value="correct">Correct <input type="color">
<br> <br>
<input type="submit" value="Submit"> <input type="checkbox" name="correct" value="correct">Correct
<br>
<input type="submit" value="Submit">
</form> </form>
``` ```
![Screenshot of Code Above](https://i.imgur.com/r0br52L.png "Screenshot of Code Above") ![Screenshot of Code Above](https://i.imgur.com/r0br52L.png "Screenshot of Code Above")