<time>属性HTML

Sam*_*ams 2 time html5

<p>The dentist's office opens at <time>8:00</time>.</p>

<p>The dentist's office opens at 8:00.</p>
Run Code Online (Sandbox Code Playgroud)

如果这两个段落标记显示相同的内容,为什么需要时间标记?这可能是一个总的noob问题,但我正在做一个整洁的项目.

测试:

牙医诊所于8:00开放.

牙医诊所于8:00开放.

Rah*_*thi 6

MDN说:

该元素旨在用于以机器可读格式显示日期和时间.这有助于用户代理为用户的日历提供任何事件安排.

它不用于任何视觉目的.您可以使用CSS.