问题描述
之类的标题说,我想,以确定是否数据
是XHTML严格DOCTYPE标准属性。我似乎无法在网上找到的任何信息(看起来像它的HTML 5ish)。
Like the title says, I'm trying to determine if data
is a standard attribute in the XHTML strict doctype. I can't seem to find any information online (looks like its HTML-5ish).
推荐答案
如果你在谈论与数据属性。如果你想在XHTML中使用它们,你需要XHTML5。
If you're talking about attributes with the data-
prefix, that's indeed HTML5 only. If you want to use them in XHTML, you'd need XHTML5.
还有一个属性,它的名字就是数据
。它是<对象>
元素就像在图像上的src
属性。这是两个严格和过渡的doctype HTML4和XHTML1的一部分。
There is also an attribute whose name is just data
. It's for <object>
elements and works like the src
attribute on images. It's part of HTML4 and XHTML1 in both Strict and Transitional doctypes.
这篇关于是&QUOT;数据&QUOT;归因于严格的XHTML文档类型的标准属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!