Skip to content

Instantly share code, notes, and snippets.

@sagiavinash
Created April 21, 2017 18:17
Show Gist options
  • Save sagiavinash/2e558f287bb6c0cd9be99194547f4e03 to your computer and use it in GitHub Desktop.
Save sagiavinash/2e558f287bb6c0cd9be99194547f4e03 to your computer and use it in GitHub Desktop.
Frontend Guidelines

HTML

form inputs

  • use implicit labels instead of explicit labels
<!-- instead of explicit labels -->
<label for="formField">
<input id="formField" type="text" />

<!-- use of implicit labels -->
<label>
    <input type="text" />
</label>
<!-- as they never involve id's -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment