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

Categories

0 votes
308 views
in Technique[技术] by (71.8m points)

xml - XHTML 5 Prologue vs XHTML 1 Prologue

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

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...