tags:

views:

86

answers:

1

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?

A: 

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.

David Dorward