What’s the point of using the HTML5

前端 未结 4 1101
陌清茗
陌清茗 2020-12-23 18:38

I have been going through some tutorials on the tag, but I honestly don\'t see why we are using it.

For example:

Published          


        
4条回答
  •  囚心锁ツ
    2020-12-23 19:36

    HTML5 time element

    When in doubt look at the spec!

    The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below.

    From the HTML5.2 spec on the W3C site: https://www.w3.org/TR/html52/textlevel-semantics.html#the-time-element

    Have a look at the site for more info. :)

提交回复
热议问题