HTML标签
                
                    
                            <!-->
                        
                            <!DOCTYPE>
                        
                            <a>
                        
                            <abbr>
                        
                            <acronym>
                        
                            <address>
                        
                            <applet>
                        
                            <area>
                        
                            <article>
                        
                            <aside>
                        
                            <audio>
                        
                            <b>
                        
                            <base>
                        
                            <basefont>
                        
                            <bdi>
                        
                            <bdo>
                        
                            <big>
                        
                            <blockquote>
                        
                            <body>
                        
                            <br>
                        
                            <button>
                        
                            <canvas>
                        
                            <caption>
                        
                            <center>
                        
                            <cite>
                        
                            <code>
                        
                            <col>
                        
                            <colgroup>
                        
                            <command>
                        
                            <datalist>
                        
                            <dd>
                        
                            <del>
                        
                            <details>
                        
                            <dfn>
                        
                            <dialog>
                        
                            <dir>
                        
                            <div>
                        
                            <dl>
                        
                            <dt>
                        
                            <em>
                        
                            <embed>
                        
                            <fieldset>
                        
                            <figcaption>
                        
                            <figure>
                        
                            <font>
                        
                            <footer>
                        
                            <form>
                        
                            <frame>
                        
                            <frameset>
                        
                            <head>
                        
                            <header>
                        
                            <hgroup>
                        
                            <h1> - <h6>
                        
                            <hr>
                        
                            <i>
                        
                            <iframe>
                        
                            <img>
                        
                            <input>
                        
                            <ins>
                        
                            <kbd>
                        
                            <keygen>
                        
                            <label>
                        
                            <legend>
                        
                            <li>
                        
                            <link>
                        
                            <map>
                        
                            <mark>
                        
                            <menu>
                        
                            <meta>
                        
                            <meter>
                        
                            <nav>
                        
                            <noframes>
                        
                            <noscript>
                        
                            <object>
                        
                            <ol>
                        
                            <optgroup>
                        
                            <option>
                        
                            <output>
                        
                            <p>
                        
                            <param>
                        
                            <pre>
                        
                            <html>
                        
                            <progress>
                        
                            <q>
                        
                            <rp>
                        
                            <rt>
                        
                            <ruby>
                        
                            <s>
                        
                            <samp>
                        
                            <script>
                        
                            <section>
                        
                            <select>
                        
                            <small>
                        
                            <source>
                        
                            <span>
                        
                            <strike>
                        
                            <strong>
                        
                            <style>
                        
                            <sub>
                        
                            <summary>
                        
                            <sup>
                        
                            <table>
                        
                            <tbody>
                        
                            <td>
                        
                            <textarea>
                        
                            <tfoot>
                        
                            <th>
                        
                            <thead>
                        
                            <time>
                        
                            <title>
                        
                            <tr>
                        
                            <track>
                        
                            <tt>
                        
                            <u>
                        
                            <ul>
                        
                            <var>
                        
                            <video>
                        
                            <wbr>
                        
                
            autocomplete
HTML <input> autocomplete 属性
实例
启用自动完成功能的 HTML 表单(其中一个输入字段禁用了自动完成):
		<form action="demo_form.html" autocomplete="on">
First name:<input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
E-mail: <input type="email" name="email" autocomplete="off"><br>
<input type="submit">
</form>
First name:<input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
E-mail: <input type="email" name="email" autocomplete="off"><br>
<input type="submit">
</form>
浏览器支持
	



 
 
所有主流浏览器都支持 autocomplete 属性。
提示:在某些浏览器中,您可能需要手动启用自动完成功能(在浏览器菜单的"参数设置"中进行设置)。
定义和用法
autocomplete 属性规定输入字段是否应该启用自动完成功能。
自动完成允许浏览器预测对字段的输入。当用户在字段开始键入时,浏览器基于之前键入过的值,应该显示出在字段中填写的选项。
注意:autocomplete 属性适用于下面的 <input> 类型:text、search、url、tel、email、password、datepickers、range 和 color。
HTML 4.01 与 HTML5之间的差异
autocomplete 属性是 HTML5 中的新属性。
语法
		<input autocomplete="on|off">
	
属性值
| 值 | 描述 | 
|---|---|
| on | 默认。规定启用自动完成功能。 | 
| off | 规定禁用自动完成功能。 |