Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
314 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...