Skip to content

Instantly share code, notes, and snippets.

@jakebellacera
Created January 19, 2011 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakebellacera/785441 to your computer and use it in GitHub Desktop.
Save jakebellacera/785441 to your computer and use it in GitHub Desktop.
A nicer-looking form.
<!-- Begin 'ze form -->
<h2>Contact Form</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<form>
<div>
<fieldset>
<legend>Name &amp; Stuff</legend>
<dl>
<dt><label for="first-name">First Name:</label></dt>
<dd><input type="text" name="first-name" id="bride-name" class="textfield"/></dd>
<dt><label for="last-name">Last Name:</label></dt>
<dd><input type="text" name="last-name" id="groom-name" class="textfield"/></dd>
<dt><label for="mailing-address">Mailing Address:</dt>
<dd><input type="text" name="Street, City, State, Zip" id="mailing-address" name="mailing-address" placeholder="Street #1" class="textfield"/></dd>
<dt><label for="email-address">Email Address:</label></dt>
<dd><input type="text" name="fname" placeholder="user@example.com" id="email-address" class="textfield"/></dd>
</dl>
</fieldset>
<fieldset>
<legend>Options Bracket</legend>
<dl>
<dt><label for="cat-food">Do you like cat food?</label></dt>
<dd>
<ul class="form-list">
<li><radio name="cat-food" id="cat-food-yes" value="yes" /> <label for="cat-food-yes">Yes</label></li>
<li><radio name="cat-food" id="cat-food-no" value="no" /> <label for="cat-food-no">Nope</label></li>
</ul>
</dd>
<dt>
<label for="options">Select some options:</label>
<p>The more options selected, the merrier. Right?</p>
</dt>
<dd>
<ul class="form-list">
<li><checkbox name="options" value="option-1" id="options-1" /> <label for="option-1">Option #1</label></li>
<li><checkbox name="options" value="option-2" id="options-2" /> <label for="option-2">Option #2</label></li>
<li><checkbox name="options" value="option-3" id="options-3" /> <label for="option-3">Option #3</label></li>
<li><checkbox name="options" value="option-4" id="options-4" /> <label for="option-4">Option #4</label></li>
<li><checkbox name="options" value="option-5" id="options-5" /> <label for="option-5">Option #5</label></li>
</ul>
</dd>
</dl>
</fieldset>
<fieldset>
<legend>Other Notes</legend>
<dl>
<dt>
<label for="comments">Comments:</label>
<p>Anything else to say that we didn't ask for above? Let us know!</p>
</dt>
<dd><textarea name="comments" class="textbox-big"></textarea></dd>
</dl>
</fieldset>
<div class="submit">
<input type="submit" value="Submit" id="submit-button"/>
</div>
</div>
</form>
<!-- FORM, END! -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment