案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<form action="/example/demo_form.aspx">
6
  First name: <input type="text" name="fname" autofocus><br>
7
  Last name: <input type="text" name="lname"><br>
8
  <input type="submit">
9
</form>
10
11
<p><b>注释:</b>Internet Explorer 9 以及更早的版本不支持 input 标签的 autofocus 属性。</p>
12
13
</body>
14
</html>