Using Puppy Linux 4.3.1, I created some HTML files then uploaded to a web host. I go to the site (still using Puppy Linux) and the HTML pages show with no problems. Then I go to Windows, start a browser (I tried both in Mozilla FF and Opera) and open the same pages and lo and behold, the browser reports server timeout errors (i.e. server is not responding, etc.).
So I go back to my Puppy Linux box, clear the cache of the browser (I'm using Seamonkey 2.0), reload the page and viola, it appears!
What I do next, I delete all the files from the web host, create the HTML files using Windows, re-upload, then it's ok -- it now shows in Windows! Then back to my Linux box, open the page, it also shows properly.
So, is there a difference when creating HTML files in Linux and Windows?
asked Apr 24 '10 at 17:26
There is no difference, save for the fact that lines are separated in Windows (and DOS) by CR/LFs (carriage return 0x0D and line feed 0x0A characters) while in UNIX-like OSes lines are separated by LFs (line feed 0x0A characters) only.
It should not pose any difference when it comes to browsers rendering HTML files saved with CR/LFs or just LFs. My take is that the problem you experienced is probably a fluke.
answered Apr 26 '10 at 02:57
There shouldn't be any. HTML files are just text files which you can create in any environment and should also be viewable in different platforms.
Now how they're rendered is a totally different story since browsers (especially IE) sometimes have their own interpretation of the HTML/CSS specs.
It's a good thing that most major websites are now removing support for IE 6. That used to be the biggest headache for web designers.
Can you share what application you used in Linux to create the file? Maybe it inserted special characters which your windows browser could not decode? Or maybe it was purely coincidence that the server was down when you browsed using Windows. :)
answered Apr 25 '10 at 00:09