English 中文(简体)
与时间挂钩
原标题:Link with time tag
  • 时间:2011-03-27 20:33:40
  •  标签:
  • html

什么是正确的?

<a>
  <time>TIME_HERE</time>
</a>

<>>>

<time>
  <a>TIME_HERE</a>
</time>

或者,上述任何内容都无效。

最佳回答

具体措词表明,没有<代码> 具体时间,内容应为有效日期或时间范围,因此,<代码>anchor 填补<代码>时要素,而不是相反。 如果存在<条码>日属性,则内容不必指明日期或时间,并且可以设想在内部有<条码>。 请注意,说明中的任何例子都没有在时间要素内有过时的内容(案文节点除外)。

http://www.w3.org/TR/html5/text-level-semantics.html#the-time-element

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签