源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="action_page.php" autocomplete="on"> 名字:<input type="text" name="fname"><br> 姓氏: <input type="text" name="lname"><br> E-mail: <input type="email" name="email" autocomplete="off"><br> <input type="submit"> </form> <p>填充并添加表单,然后重新加载页面,看看如何自动完成工作</p> <p>注意form表单是“on”,但是e-mail字段是"off".</p> </body> </html>
运行结果