Skip to content

Instantly share code, notes, and snippets.

View GooseNinja's full-sized avatar
🐢

Skuli Oskarsson GooseNinja

🐢
View GitHub Profile
@nepsilon
nepsilon / 3-hidden-html-tips.md
Last active February 19, 2017 13:55
3 hidden HTML tips — First published in fullweb.io issue #61

3 hidden HTML tips

1. Click label to auto-focus on input:

A big plus for a good UX that all modern browsers support. Note that the pairing happens between the label’s for attribute and the input’s id attribute, not its name.

<label for="username">Fiscal Year</label>
<input type="name" name="username" id="username" />