Software to convert html5 to old html4 (downgrading)?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There is no such thing as converting HTML5 to HTML4. You would need to go through and edit the HTML5 so that it is compliant to HTML4 standards. Look at this for information on what has changed between the two versions.
The problem I see with doing this is that HTML5 is far more compatible with today's networked devices than HTML4 ever was. What reason do you have for switching your web app to HTML4? What web app are you developing?
For most pages, it's incredibly easy. You change the DOCTYPE at the top of the file, and you change the semantic container elements (section, article, etc) to divs. You can use a text editor, or you can use sed if you have a lot of files to convert.
Note that there is absolutely zero reason to ever do that. If you think you have a use case for it, you're wrong.
If there are audio or video or canvas elements then you replace them with Flash. If there's offline storage you replace it with AJAX. Those are a bit less easy.
For most pages, it's incredibly easy. You change the DOCTYPE at the top of the file, and you change the semantic container elements (section, article, etc) to divs. You can use a text editor, or you can use sed if you have a lot of files to convert.
Note that there is absolutely zero reason to ever do that. If you think you have a use case for it, you're wrong.
If there are audio or video or canvas elements then you replace them with Flash. If there's offline storage you replace it with AJAX. Those are a bit less easy.
Furthermore, the html5 code can be more complex (to highly) and not be understood as html4. I am not sure that only changing DOCTYPE and header changes might work in all cases. I was more considering a web browser that would do this operation by itself. Firefox can save as, but of course no formating html4 might be present since it can mod the page.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.