Created
June 16, 2011 15:44
-
-
Save stevenharman/1029537 to your computer and use it in GitHub Desktop.
a better way to label a form input.
This file contains 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
<!-- see: http://www.w3.org/TR/html5/forms.html#the-label-element --> | |
<!-- stop doing this --> | |
<label for="post_title">Title:</label> <input type="text" id="post_title" name="post[title]"> | |
<!-- start doing this! --> | |
<label>Title: <input type="text" name="post[title]"></label> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment