Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created March 16, 2011 22:18
Show Gist options
  • Save srkirkland/873442 to your computer and use it in GitHub Desktop.
Save srkirkland/873442 to your computer and use it in GitHub Desktop.
Desired Html structure for a form, excluding the fieldset stuff. Label only has the required class & matching span if required.
<ul>
<li>
<div class="editor-label required">
<label>Text Field: </label><span>*</span>
</div>
<div class="editor-field">
<input type="text" value="Default" id="CompanyName">
<span class="field-validation-error">The CompanyName field is required.</span>
</div>
</li>
<li>
.... And so on ....
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment