Can be Validator used as conversion from XHTML to HTML5?

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
toplisek
Rank 0 - Newcomer
Posts: 2
Joined: Wed Jan 30, 2013 4:05 am

Can be Validator used as conversion from XHTML to HTML5?

Post by toplisek »

Can be Validator used as conversion from XHTML to HTML5 or there is better way?
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Can be Validator used as conversion from XHTML to HTML5?

Post by Albert Wiersch »

You can always use the validator part of CSE HTML Validator to check the conversion, but not to actually do the conversion.

One option might be to check the document using CSE HTML Validator's support for polyglot. Such documents can be served as XML or plain HTML5. More information is here:
https://www.htmlvalidator.com/current/d ... l_node.htm

Another option is to try the Pretty Print & Fix (HTML Tidy) tool and force the output to 'html' and the doctype to 'html5'. Of course you'll need to check that the converted documents still work as you want and that they weren't changed in a way that breaks something.

I hope this helps.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply