Difference between revisions of "rest/forms-brainstorming"

From Microformats Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
= Forms Brainstorming =
 
= Forms Brainstorming =
  
This page collects ideas for how to best encode  
+
This page collects ideas for how to best encode form data into a microformat
  
 
== Best design pattern so far ==
 
== Best design pattern so far ==
  <FORM action="http://somesite.com/prog/adduser" method="post">
+
  &lt;a class="deth" href="http://somesite.com/prog/adduser">label</a>
 +
 
 +
&lt;form class="deth" action="http://somesite.com/prog/adduser" method="post">
 
  &lt;table class="form">
 
  &lt;table class="form">
 
  &lt;tr>
 
  &lt;tr>
   &lt;td>&lt;LABEL for="firstname">First name:&lt;/LABEL>&lt;/td>
+
   &lt;td>&lt;label for="firstname">First name:&lt;/label>&lt;/td>
   &lt;td>&lt;INPUT type="text" id="firstname">&lt;/td>
+
   &lt;td>&lt;input type="text" id="firstname">&lt;/td>
 
  &lt;/tr>&lt;tr>
 
  &lt;/tr>&lt;tr>
   &lt;td>&lt;LABEL for="lastname">Last name:&lt;/LABEL>&lt;/td>
+
   &lt;td>&lt;label for="lastname">Last name:&lt;/label>&lt;/td>
   &lt;td>&lt;INPUT type="text" id="lastname">&lt;/td>
+
   &lt;td>&lt;input type="text" id="lastname">&lt;/td>
 
  &lt;/tr>&lt;tr>
 
  &lt;/tr>&lt;tr>
   &lt;td>&lt;LABEL for="email">Email:&lt;/LABEL>&lt;/td>
+
   &lt;td>&lt;label for="email">Email:&lt;/label>&lt;/td>
   &lt;td>&lt;INPUT type="text" id="email">&lt;/td>
+
   &lt;td>&lt;input type="text" id="email">&lt;/td>
 
  &lt;/tr>&lt;tr>
 
  &lt;/tr>&lt;tr>
   &lt;td>&lt;LABEL for="sex">Sex:&lt;/LABEL>&lt;/td>
+
   &lt;td>&lt;label for="sex">Sex:&lt;/label>&lt;/td>
 
   &lt;td>
 
   &lt;td>
     &lt;INPUT type="radio" name="sex" value="Male">Male &lt;/input>
+
     &lt;input type="radio" name="sex" value="Male">Male &lt;/input>
     &lt;INPUT type="radio" name="sex" value="Female">Female &lt;/input>
+
     &lt;input type="radio" name="sex" value="Female">Female &lt;/input>
 
   &lt;/td>
 
   &lt;/td>
 
  &lt;/tr>&lt;tr>
 
  &lt;/tr>&lt;tr>
   &lt;td>&lt;LABEL for="age">Age:&lt;/LABEL>&lt;/td>
+
   &lt;td>&lt;label for="age">Age:&lt;/label>&lt;/td>
 
   &lt;td>&lt;select>
 
   &lt;td>&lt;select>
 
     &lt;option val=0>&lt; 18 &lt;/option>
 
     &lt;option val=0>&lt; 18 &lt;/option>
Line 30: Line 32:
 
  &lt;/tr>
 
  &lt;/tr>
 
  &lt;/table>
 
  &lt;/table>
  &lt;INPUT type="submit" value="Send">  &lt;INPUT type="reset">
+
  &lt;input type="submit" value="Send">  &lt;input type="reset">
  &lt;/FORM>
+
  &lt;/form>

Revision as of 21:09, 11 October 2005

Forms Brainstorming

This page collects ideas for how to best encode form data into a microformat

Best design pattern so far

<a class="deth" href="http://somesite.com/prog/adduser">label</a>
<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="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>