Is HTML5 backwards compatible with XHTML?

后端 未结 3 1366
耶瑟儿~
耶瑟儿~ 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条回答
  •  [愿得一人]
    2021-01-17 16:23

    As far as I know, HTML5 is pretty much xhtml plus the extras so yeah, I think you can change the doctype and it would still work. They answered it here: If I use HTML 5's doctype, what will happen?

提交回复
热议问题