XHTML 5 Prologue vs XHTML 1 Prologue

2019-08-21 18:38发布

Are there any differences between prologues of XHTML 1 and XHTML 5? Is it possible to find out whether a document is XHTML 1 or XHTML 5 simply by looking at its prologue?

标签: xml html5
1条回答
SAY GOODBYE
2楼-- · 2019-08-21 18:56

A strictly conforming XHTML 1.0 document will include an XHTML 1.0 Doctype.

Non-strictly conforming XHTML 1.0 documents and XHTML 5 documents will not. So it will let you identify some XHTML 1.0 documents, but not all.

查看更多
登录 后发表回答