Skip to content

Instantly share code, notes, and snippets.

@tylerlee
Created May 7, 2012 15:22
Show Gist options
  • Select an option

  • Save tylerlee/2628373 to your computer and use it in GitHub Desktop.

Select an option

Save tylerlee/2628373 to your computer and use it in GitHub Desktop.
how to write a form in markup with the definition list method
<form>
<fieldset>
<dl class="form">
<dt><label>Example Text</label></dt>
<dd><input type="text" class="textfield" value="Example Value" /></dd>
</dl>
<dl class="form">
<dt><label>Example Label</label></dt>
<dd>
<select>
<option>Choose an option</option>
<option>Git</option>
<option>Subversion</option>
<option>Social Coding</option>
<option>Beets</option>
<option>Bears</option>
<option>Battlestar Galactica</option>
</select>r
</dd>
</dl>
<div class="form-checkbox">
<label>
<input type="checkbox" checked="checked" />
Available for hire
</label>
<p class="note">
This will do insanely awesome and amazing things!
</p>
</div>
</fieldset>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment