<form ><input type='text' name='t1' >This text box without autofocus<br> <br> <input type='text' name='t1' autofocus>This text box has autofocus</form>