1. <small id='0hgZ7'></small><noframes id='0hgZ7'>

    • <bdo id='0hgZ7'></bdo><ul id='0hgZ7'></ul>
    <i id='0hgZ7'><tr id='0hgZ7'><dt id='0hgZ7'><q id='0hgZ7'><span id='0hgZ7'><b id='0hgZ7'><form id='0hgZ7'><ins id='0hgZ7'></ins><ul id='0hgZ7'></ul><sub id='0hgZ7'></sub></form><legend id='0hgZ7'></legend><bdo id='0hgZ7'><pre id='0hgZ7'><center id='0hgZ7'></center></pre></bdo></b><th id='0hgZ7'></th></span></q></dt></tr></i><div id='0hgZ7'><tfoot id='0hgZ7'></tfoot><dl id='0hgZ7'><fieldset id='0hgZ7'></fieldset></dl></div>
    <tfoot id='0hgZ7'></tfoot>
  2. <legend id='0hgZ7'><style id='0hgZ7'><dir id='0hgZ7'><q id='0hgZ7'></q></dir></style></legend>

    1. 什么是&lt;dl&gt;标记为?

      时间:2023-07-31
    2. <tfoot id='Do6Th'></tfoot>
      • <bdo id='Do6Th'></bdo><ul id='Do6Th'></ul>

              <i id='Do6Th'><tr id='Do6Th'><dt id='Do6Th'><q id='Do6Th'><span id='Do6Th'><b id='Do6Th'><form id='Do6Th'><ins id='Do6Th'></ins><ul id='Do6Th'></ul><sub id='Do6Th'></sub></form><legend id='Do6Th'></legend><bdo id='Do6Th'><pre id='Do6Th'><center id='Do6Th'></center></pre></bdo></b><th id='Do6Th'></th></span></q></dt></tr></i><div id='Do6Th'><tfoot id='Do6Th'></tfoot><dl id='Do6Th'><fieldset id='Do6Th'></fieldset></dl></div>
                <tbody id='Do6Th'></tbody>
            • <legend id='Do6Th'><style id='Do6Th'><dir id='Do6Th'><q id='Do6Th'></q></dir></style></legend>

                <small id='Do6Th'></small><noframes id='Do6Th'>

                本文介绍了什么是&lt;dl&gt;标记为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                使用<dl>、<dt>有什么合乎逻辑的理由吗?和 <dd>标签而不是嵌套的 CSS 样式的 <ul>和<ol>标签?或者它们只是一组等待被弃用的过时标签?

                Is there any logical reason for using the <dl>, <dt> and <dd> tags instead of nested, CSS-styled <ul> and <ol> tags? Or are they just an outdated group of tags waiting to be deprecated?

                推荐答案

                引用W3C 规范:

                dl 元素表示一个由零个或多个名称-值组组成的关联列表(描述列表).每个组必须由一个或多个名称(dt 元素)后跟一个或多个值(dd 元素)组成.在单个 dl 元素中,每个名称不应有多个 dt 元素.

                The dl element represents an association list consisting of zero or more name-value groups (a description list). Each group must consist of one or more names (dt elements) followed by one or more values (dd elements). Within a single dl element, there should not be more than one dt element for each name.

                所以 <dl><dt><dd> 标签的主要原因是为了保留语义如果您只使用嵌套列表,这些名称-值对的连接会丢失.

                So the main reason for the <dl>, <dt> and <dd> tags are to preserve the semantic connection for those name-value pairs, which would get lost, if you just used nested lists.

                如果您使用嵌套列表,这可能出于各种原因(目前,例如,许多菜单被构建为嵌套列表),并且爬虫或任何其他尊重语义注释的系统都无法区分.

                If you use nested lists, this could be done for various reasons (currently, e.g., many menus are structured into nested lists) and crawlers or any other system, that respects semantic annotations, would not be able to tell the difference.

                但是,如果您使用上述标签,系统可以看到连接并采取相应措施.因此,未来的用途可能是提取较大文档中的所有术语定义,以创建某种词汇表.

                If you use the above tags, however, a system can see the connection and act accordingly. So a future use maybe to extract all definitions of terms inside a larger document to create some kind of glossary.

                这篇关于什么是&lt;dl&gt;标记为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:将元描述和 Open Graph Protocol 描述合二为一 下一篇:Select2 限制标签数量

                相关文章

                <tfoot id='jQn43'></tfoot>
              1. <legend id='jQn43'><style id='jQn43'><dir id='jQn43'><q id='jQn43'></q></dir></style></legend>
                1. <i id='jQn43'><tr id='jQn43'><dt id='jQn43'><q id='jQn43'><span id='jQn43'><b id='jQn43'><form id='jQn43'><ins id='jQn43'></ins><ul id='jQn43'></ul><sub id='jQn43'></sub></form><legend id='jQn43'></legend><bdo id='jQn43'><pre id='jQn43'><center id='jQn43'></center></pre></bdo></b><th id='jQn43'></th></span></q></dt></tr></i><div id='jQn43'><tfoot id='jQn43'></tfoot><dl id='jQn43'><fieldset id='jQn43'></fieldset></dl></div>

                      <bdo id='jQn43'></bdo><ul id='jQn43'></ul>
                  1. <small id='jQn43'></small><noframes id='jQn43'>