Created
May 7, 2012 15:22
-
-
Save tylerlee/2628373 to your computer and use it in GitHub Desktop.
how to write a form in markup with the definition list method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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