Skip to content

Instantly share code, notes, and snippets.

@elisechant
Last active December 18, 2015 20:59
Show Gist options
  • Select an option

  • Save elisechant/5844276 to your computer and use it in GitHub Desktop.

Select an option

Save elisechant/5844276 to your computer and use it in GitHub Desktop.
Form labels - implicit and explicit association
<form action="#">
<fieldset>
<legend>Form title</legend>
<ol>
<li>
<label>Name
<input type="text" /></label><!-- implicit association -->
</li>
<li>
<label>Email</label><!-- explicit association -->
<input type="email" />
</li>
</ol>
</fieldset>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment