Editing HTML
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 515: | Line 515: | ||
===Form Elements=== | ===Form Elements=== | ||
− | + | If we change the input type to '''radio''', it allows the user select only one of a number of choices: | |
<pre><input type="radio" name="gender" value="male" /> Male <br /> | <pre><input type="radio" name="gender" value="male" /> Male <br /> | ||
<input type="radio" name="gender" value="female" /> Female <br /></pre> | <input type="radio" name="gender" value="female" /> Female <br /></pre> | ||
− | + | The type '''checkbox''' allows the user to select more than one option: | |
<pre><input type="checkbox" name="gender" value="1" /> Male <br /> | <pre><input type="checkbox" name="gender" value="1" /> Male <br /> | ||
<input type="checkbox" name="gender" value="2" /> Female <br /></pre> | <input type="checkbox" name="gender" value="2" /> Female <br /></pre> | ||
Line 525: | Line 525: | ||
The '''<input''' tag has no end tag. | The '''<input''' tag has no end tag. | ||
− | + | The submit button '''submits a form''' to its action attribute: | |
<pre><input type="submit" value="Submit" /> </pre> | <pre><input type="submit" value="Submit" /> </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==See also== | ==See also== | ||
*[[CSS]] | *[[CSS]] | ||
− | |||
− |
Advertising: