Are Custom Attributes OK in XHTML

非 Y 不嫁゛ 提交于 2019-11-29 03:23:52

custom attributes won't be considered valid by the standard W3C validators. You can define your own document type definition (DTD) though. See http://www.alistapart.com/articles/customdtd/ for more information about that.

With the standard document type definition, you can't introduce your own custom attributes.

But, starting with HTML5 you'll be able to introduce your own attributes as long as you prefix them with data-.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!