Last active
December 21, 2015 00:59
-
-
Save thulioph/6224690 to your computer and use it in GitHub Desktop.
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
<h1>html5 attr autofocus</h1> | |
<label>Input de texto:</label> | |
<input type="text" placeholder="input type text"> | |
<br /> | |
<label>Input de e-mail:</label> | |
<input type="email" placeholder="input type e-mail" autofocus> | |
<br /> | |
<label>Input de senha:</label> | |
<input type="password" placeholder="input type password"> | |
<br /> | |
<label>Input de telefone:</label> | |
<input type="tel" placeholder="input type tel"> | |
<p> | |
<span>OBS</span>: Acima existem vários inputs, o foco será no input email; | |
<br /> | |
Basta incluir autofocus no input desejado e <i>voilà</i>! | |
</p> |
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
body{ | |
font-size: 12px; | |
font-family: "Trebuchet MS", Helvetica, sans-serif; | |
} | |
span{ | |
background: yellow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment