Is HTML5 backwards compatible with XHTML?

后端 未结 3 1388
耶瑟儿~
耶瑟儿~ 2021-01-17 15:47

Short question: Can I change the DOCTYPE of my existing XHTML 1.0 website to HTML5? Will this cause any problems?

Long story:

3条回答
  •  Happy的楠姐
    2021-01-17 16:28

    HTML5 was designed to be backwards compatible with both HTML 4.01 and XHTML 1.0/1.1, so that previous (X)HTML pages could be migrated to HTML5 easier. Of course, they wouldn't be taking advantage of new HTML5 features (such as new tags), but they would still be technically valid HTML5.

提交回复
热议问题