1 <html lang="en">
 2 
 3 <head>
 4     <meta charset="UTF-8">
 5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 6     <meta http-equiv="X-UA-Compatible" content="ie=edge">
 7     <title></title>
 8 </head>
 9 
10 <body>
11 
12     <!-- autofocus  自动获取焦点
13                              required
14 
15                    -->
16     <form action="">
17         姓名1:<label><input type="text" required autofocus></label> 姓名1:
18         <label><input type="text" required></label>
19         <input type="submit">
20     </form>
21     </div>
22 </body>
23 
24 </html>