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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-26-2015, 04:36 AM
|
#1
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,747
|
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
|
|
|
05-26-2015, 05:48 PM
|
#2
|
Slackware Contributor
Registered: May 2015
Distribution: Slackware
Posts: 1,956
|
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?
|
|
|
05-26-2015, 06:10 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,375
|
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.
|
|
|
05-27-2015, 01:42 AM
|
#4
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,710
|
if you are using Gnome
then Gedit is what you need
kate if using KDE
or Emacs
|
|
|
05-27-2015, 02:43 AM
|
#5
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,747
Original Poster
|
Quote:
Originally Posted by dugan
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.
|
|
|
05-27-2015, 09:32 AM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,375
|
Quote:
Originally Posted by Xeratul
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?
|
|
|
All times are GMT -5. The time now is 08:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|