autofocus keyword HTML5

How to declare :

<form action=”” method=”post”>
<label for=”username”>Create a Username: </label>
<input type=”text”
name=”username”
id=”username”
placeholder=”4 <> 10″
pattern=”[A-Za-z]{4,10}”
autofocus
required>
<button type=”submit”>Go </button>
</form>

Output :
Click on go button without fill the input field and show result.

Leave a Reply