Html: Difference between revisions
Jump to navigation
Jump to search
(→label) |
|||
Line 1: | Line 1: | ||
== Some useful html tags == | == Some useful html tags == | ||
=== [http://www.w3schools.com/tags/tag_form.asp form] === | |||
<pre> | |||
<form action="demo_form.asp"> | |||
First name: <input type="text" name="FirstName" value="Mickey"><br> | |||
Last name: <input type="text" name="LastName" value="Mouse"><br> | |||
<input type="submit" value="Submit"> | |||
</form> | |||
</pre> | |||
=== [http://www.w3schools.com/tags/tag_label.asp label] === | === [http://www.w3schools.com/tags/tag_label.asp label] === | ||
<pre> | <pre> |
Revision as of 11:31, 16 November 2012
Some useful html tags
form
<form action="demo_form.asp"> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> <input type="submit" value="Submit"> </form>
label
<form action="demo_form.asp"> <label for="male">Male</label> <input type="radio" name="sex" id="male" value="male"><br> <label for="female">Female</label> <input type="radio" name="sex" id="female" value="female"><br> <input type="submit" value="Submit"> </form>