Made code more clear + Added Image (#22763)

This commit is contained in:
Eme-rald
2018-11-26 02:17:27 -08:00
committed by Manish Giri
parent 9fb5629b51
commit 3ba002f2b6

View File

@ -34,24 +34,30 @@ 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">
<label for="password">Password:</label> <br>
<input type="password" name="password" id="password"> <label for="password">Password:</label>
<input type="radio" name="gender" value="male">Male<br> <input type="password" name="password" id="password">
<input type="radio" name="gender" value="female">Female<br> <br>
<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
<input list="Options">
<datalist id="Options">
<option value="Option1"> <option value="Option1">
<option value="Option2"> <option value="Option2">
<option value="Option3"> <option value="Option3">
</datalist> </datalist>
<input type="submit" value="Submit"> <br>
<input type="color"> <input type="color">
<input type="checkbox" name="correct" value="correct">Correct <br>
<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")
Other elements that form can contain: Other elements that form can contain: