LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-26-2015, 04:36 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Software to convert html5 to old html4 (downgrading)?


Hello,

Would you know a software to convert html5 to old html4 (downgrading)? I could not find anything.

Thank you,
Regards
 
Old 05-26-2015, 05:48 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
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?
 
Old 05-26-2015, 06:10 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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.

Last edited by dugan; 05-26-2015 at 07:21 PM.
 
Old 05-27-2015, 01:42 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you are using Gnome

then Gedit is what you need

kate if using KDE

or Emacs
 
Old 05-27-2015, 02:43 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by dugan View Post
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.
 
Old 05-27-2015, 09:32 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by Xeratul View Post
Furthermore, the html5 code can be more complex (to highly) and not be understood as html4.
And what examples are there other than the ones I already mentioned?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No sound in HTML5(and HTML5 on Youtube) Hoff123 Linux - General 3 09-19-2020 07:46 AM
How does a server serves html4 documents? rblampain Programming 4 07-13-2014 04:27 PM
LXer: 15 HTML5 Demos Showcasing Prowess of HTML5 Over Adobe Flash LXer Syndicated Linux News 0 08-14-2010 02:42 PM
LXer: Google talks Chrome OS, HTML5, and the future of software LXer Syndicated Linux News 0 01-20-2010 04:20 PM
LXer: Javascript + HTML5: The Future of Education Software LXer Syndicated Linux News 0 04-09-2009 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration