开发者

"Converting" XHTML 1.0 Strict to HTML5

开发者 https://www.devze.com 2023-01-05 06:41 出处:网络
OK folks, So I have a valid XHTML 1.0 Strict webpage. I\'m aware of the differences between XHTML and HTML, but, what are 开发者_StackOverflow中文版the differences between XHTML and HTML 5?

OK folks,

So I have a valid XHTML 1.0 Strict webpage. I'm aware of the differences between XHTML and HTML, but, what are 开发者_StackOverflow中文版the differences between XHTML and HTML 5?

Would a 'conversion' be as easy as changing the Doctype, and it would all still validate OK?

Or, are there markup differences that would need to be changed first?

Thanks!

Jack


To summarize this post and this post...

All you need to do to start taking advantage of the benefits of HTML5 is to convert your doctype from XHTML to HTML5. HTML5 is compatible with XHTML.

If you want to introduce new HTML5 tags, you will also want to add a polyfill like Modernizr so that Internet Explorer can figure out how to render the new HTML5 elements.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号