rest/forms-brainstorming: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
DETH = Dictionaries Encoding/Transmitting HTML | DETH = Dictionaries Encoding/Transmitting HTML | ||
== | == Anchor Design Pattern == | ||
<a class="deth" href="http//somesite.com/prog/adduser">label</a> | <a class="deth" href="http//somesite.com/prog/adduser">label</a> | ||
== Table Design Pattern == | |||
<form class="deth" action="http//somesite.com/prog/adduser" method="post"> | <form class="deth" action="http//somesite.com/prog/adduser" method="post"> | ||
Line 13: | Line 15: | ||
<tr> | <tr> | ||
<td><label for="firstname">First name</label></td> | <td><label for="firstname">First name</label></td> | ||
<td><input type="text" id="firstname"></td> | <td><input type="text" id="firstname" /></td> | ||
</tr><tr> | </tr><tr> | ||
<td><label for="lastname">Last name</label></td> | <td><label for="lastname">Last name</label></td> | ||
<td><input type="text" id="lastname"></td> | <td><input type="text" id="lastname" /></td> | ||
</tr><tr> | </tr><tr> | ||
<td><label for="email">Email</label></td> | <td><label for="email">Email</label></td> | ||
<td><input type="text" id="email"></td> | <td><input type="text" id="email" /></td> | ||
</tr><tr> | </tr><tr> | ||
<td><label for="sex">Sex</label></td> | <td><label for="sex">Sex</label></td> | ||
Line 41: | Line 43: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<input type="submit" value="Send"> <input type="reset"> | <input type="submit" value="Send" /> | ||
<input type="reset" /> | |||
</form> | |||
== List Design Pattern == | |||
<form class="deth" action="http//somesite.com/prog/adduser" method="post"> | |||
<ol> | |||
<li> | |||
<label for="firstname">First name<input type="text" id="firstname" /></label> | |||
</li><li> | |||
<label for="lastname">Last name<input type="text" id="lastname" /></label> | |||
</li><li> | |||
<label for="email">Email<input type="text" id="email" /></label> | |||
</li><li> | |||
<label for="sex">Sex | |||
<input type="radio" name="sex" value="Male">Male </input> | |||
<input type="radio" name="sex" value="Female">Female </input> | |||
</label> | |||
</li><li> | |||
<label for="travel">Travel | |||
<input type="checkbox" name="travel" value="car">Car</input> | |||
<input type="checkbox" name="travel" value="bike">Bicycle</input> | |||
</label> | |||
</li><li> | |||
<label for="age">Age | |||
<select> | |||
<option val=0>< 18 </option> | |||
<option val=18>18-64 </option> | |||
<option val=65>65+ </option> | |||
</select> | |||
</label> | |||
</li> | |||
</table> | |||
<input type="submit" value="Send" /> | |||
<input type="reset" /> | |||
</form> | </form> |
Revision as of 21:30, 11 October 2005
Forms Brainstorming
This page collects ideas from forms-examples how to best encode form data into a microformat
DETH = Dictionaries Encoding/Transmitting HTML
Anchor Design Pattern
<a class="deth" href="http//somesite.com/prog/adduser">label</a>
Table Design Pattern
<form class="deth" action="http//somesite.com/prog/adduser" method="post"> <table class="form"> <tr> <td><label for="firstname">First name</label></td> <td><input type="text" id="firstname" /></td> </tr><tr> <td><label for="lastname">Last name</label></td> <td><input type="text" id="lastname" /></td> </tr><tr> <td><label for="email">Email</label></td> <td><input type="text" id="email" /></td> </tr><tr> <td><label for="sex">Sex</label></td> <td> <input type="radio" name="sex" value="Male">Male </input> <input type="radio" name="sex" value="Female">Female </input> </td> </tr><tr> <td><label for="travel">Travel</label></td> <td> <input type="checkbox" name="travel" value="car">Car</input> <input type="checkbox" name="travel" value="bike">Bicycle</input> </td> </tr><tr> <td><label for="age">Age</label></td> <td><select> <option val=0>< 18 </option> <option val=18>18-64 </option> <option val=65>65+ </option> </td></select> </tr> </table> <input type="submit" value="Send" /> <input type="reset" /> </form>
List Design Pattern
<form class="deth" action="http//somesite.com/prog/adduser" method="post"> <ol> <li> <label for="firstname">First name<input type="text" id="firstname" /></label> </li><li> <label for="lastname">Last name<input type="text" id="lastname" /></label> </li><li> <label for="email">Email<input type="text" id="email" /></label> </li><li> <label for="sex">Sex <input type="radio" name="sex" value="Male">Male </input> <input type="radio" name="sex" value="Female">Female </input> </label> </li><li> <label for="travel">Travel <input type="checkbox" name="travel" value="car">Car</input> <input type="checkbox" name="travel" value="bike">Bicycle</input> </label> </li><li> <label for="age">Age <select> <option val=0>< 18 </option> <option val=18>18-64 </option> <option val=65>65+ </option> </select> </label> </li> </table> <input type="submit" value="Send" /> <input type="reset" /> </form>