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

          <bdo id='4xywl'></bdo><ul id='4xywl'></ul>

        <small id='4xywl'></small><noframes id='4xywl'>

      1. HTML 时间标签 - 正确的日期格式

        时间:2023-09-07
        <legend id='RJBn6'><style id='RJBn6'><dir id='RJBn6'><q id='RJBn6'></q></dir></style></legend>

      2. <small id='RJBn6'></small><noframes id='RJBn6'>

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

                  <tbody id='RJBn6'></tbody>
                1. <tfoot id='RJBn6'></tfoot>

                  本文介绍了HTML 时间标签 - 正确的日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想使用正确的格式和标准将时间标签放入我的 html 文档中.

                  I am wanting to use the correct format and standards to put the time tag in my html document.

                  这是正确的做法吗?

                  <time datetime="2014-03-26T12:48:42.733Z">26/03/2014</time>
                  

                  谢谢

                  推荐答案

                  time 在 HTML5 中定义的元素必须以特定的机器可读格式指定时间、日期、时间和日期或其他适用的名称,如草稿.此名称可能显示为元素内容,例如

                  The time element as defined in HTML5 must specify time, date, time and date, or other applicable designation in a specific machine-readable format, as described in the draft. This designation may appear as the element content, e.g.

                  <time>2014-03-26></time>
                  

                  如果不是(通常,当内容以某种语言以人类可读的形式指定日期或时间时),机器可读的指定必须作为 datetime 属性的值出现,例如

                  If it does not (typically, when the content specifies a date or time in human-readable form in some language), the machine-readable designation must appear as the value of the datetime attribute, e.g.

                  <time datetime="2014-03-26">26/03/2014</time>
                  

                  问题中的表示法不充分,因为属性的值必须是以机器可读格式表示的元素内容",而日期和时间表示法,精确到毫秒,很难说表示日期.

                  The notation in the question is not adequate, as the value of the attribute must be "a representation of the element's contents in a machine-readable format", and a date and time denotation, down to milliseconds, can hardly be said to represent a date.

                  注意:没有证据表明浏览器或搜索引擎会使用 time 标记,因此此类标记仅具有潜在用途.

                  Note: There is no evidence of browsers or search engines making any use of time markup, so such markup is only potentially useful.

                  这篇关于HTML 时间标签 - 正确的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:&lt;按钮&gt;不能在 IE8 中工作 下一篇:关闭 HTML 脚本标签

                  相关文章

                2. <small id='DUh5I'></small><noframes id='DUh5I'>

                  • <bdo id='DUh5I'></bdo><ul id='DUh5I'></ul>
                  <legend id='DUh5I'><style id='DUh5I'><dir id='DUh5I'><q id='DUh5I'></q></dir></style></legend>
                  <tfoot id='DUh5I'></tfoot>

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