📜  HTML-不推荐使用的标签

📅  最后修改于: 2020-12-16 06:08:18             🧑  作者: Mango


此处提供了不推荐使用的HTML标签和属性的完整列表。所有标签及其等效标签或替代CSS选项均按字母顺序排列。

Tag Description Alternate
Deprecated. Specifies an applet
Deprecated. Specifies a base font
Deprecated. Specifies centered text text-align
Deprecated. Specifies a directory list
Deprecated. Embeds an application in a document
Deprecated. Specifies text font, size, and color font-family, font-size
Deprecated. Specifies a single-line input field
Deprecated. Specifies listing of items
Deprecated. Specifies a menu list
</a></td> <td>Deprecated. Specifies plaintext</td> <td><pre></td> </tr> <tr> <td><a href="/html/html_strike_tag.htm"><s></a></td> <td>Deprecated. Specifies strikethrough text</td> <td>text-decoration</td> </tr> <tr> <td><a href="/html/html_strike_tag.htm"><strike></a></td> <td>Deprecated. Specifies strikethrough text</td> <td>text-decoration</td> </tr> <tr> <td><a href="/html/html_u_tag.htm"><u></a></td> <td>Deprecated. Specifies underlined text</td> <td>text-decoration</td> </tr> <tr> <td><a href="/html/html_xmp_tag.htm"><xmp></a></td> <td>Deprecated. Specifies preformatted text</td> <td><pre></td> </tr> </table> <h2> HTML弃用的属性</h2> <p>以下是不推荐使用的HTML属性和可用的CSS选项的列表。</p> <table class="table"> <tr> <th>Attribute</th> <th>Description</th> <th>Alternate</th> </tr> <tr> <td>align</td> <td>Specifies positioning of an element</td> <td>text-align, float & vertical-align</td> </tr> <tr> <td>alink</td> <td>Specifies the color of an active link or selected link</td> <td>active</td> </tr> <tr> <td>background</td> <td>Specifies background image</td> <td>background-image</td> </tr> <tr> <td>bgcolor</td> <td>Specifies background color</td> <td>background-color</td> </tr> <tr> <td>border</td> <td>Specifies a border width of any element</td> <td>border-width</td> </tr> <tr> <td>clear</td> <td>Indicates how the browser should display the line after the <br /> element</td> <td>clear</td> </tr> <tr> <td>height</td> <td>Specifies height of body and other elements</td> <td>height</td> </tr> <tr> <td>hspace</td> <td>Specifies the amount of whitespace or padding that should appear left or right an element</td> <td>padding</td> </tr> <tr> <td>language</td> <td>Specifies scripting language being used</td> <td>type</td> </tr> <tr> <td>link</td> <td>Specifies the default color of all links in the document</td> <td>link</td> </tr> <tr> <td>nowrap</td> <td>Prevents the text from wrapping within that table cell</td> <td>white-space</td> </tr> <tr> <td>start</td> <td>Indicates the number at which a browser should start numbering a list</td> <td>counter-reset</td> </tr> <tr> <td>text</td> <td>Specifies color of body text</td> <td>color</td> </tr> <tr> <td>type</td> <td>Specifies the type of list in <li> tag</td> <td>list-style-type</td> </tr> <tr> <td>vlink</td> <td>Specifies the color of visited links</td> <td>visited</td> </tr> <tr> <td>vspace</td> <td>Specifies the amount of whitespace or padding that should appear above or below an element</td> <td>padding</td> </tr> <tr> <td>width</td> <td>Specifies width of body and other elements</td> <td>width</td> </tr> </table> </div> </div> </div> </div> </div> </div> <footer> <div class="bg-white text-center pb-1"> <p class="text-body-tertiary pt-3 lh-lg text-opacity-50" id="footer-text">Copyright &copy; 2020 - 2024 版权所有 <br> <a href="https://beian.miit.gov.cn/" target="_blank" class="text-opacity-50 text-body-tertiary mt-1 mb-1">蜀ICP备20006366号-1</a> <br> Made with ❤️ in Chengdu </p> </div> </footer> <!-- 引入Bootstrap JavaScript库 --> <script src="https://unpkg.com/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script> <!-- 引入Meilisearch搜索相关的JavaScript库 --> <script src="https://cdn.jsdelivr.net/npm/@meilisearch/instant-meilisearch/dist/instant-meilisearch.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4"></script> <script src="https://imangodoc.com/static/javascript/meili_custom.js"></script> <!-- 引入prismjs代码高亮相关的JavaScript库 --> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/toolbar/prism-toolbar.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script> </body> </html>