Can I add a custom attribute to an HTML tag?

后端 未结 17 2300
醉话见心
醉话见心 2020-11-22 08:06

Can I add a custom attribute to an HTML tag like the following?


17条回答
  •  醉话见心
    2020-11-22 08:21

    You can amend your !DOCTYPE declaration (i.e. DTD) to allow it, so that the [XML] document will still be valid:

    
    ]>
    

    #IMPLIED means it is an optional attribute, or you could use #REQUIRED, etc.

    More information is in DTD - Attributes.

提交回复
热议问题