gawain Posted June 1, 2006 Share Posted June 1, 2006 It must be a very ... question, but I'll carry on.If I use a doctype such as the following one<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">which extension shall I use when I save the file, namefile.HTML or namefile.XHTML?Thanks a lot Link to comment Share on other sites More sharing options...
aspnetguy Posted June 1, 2006 Share Posted June 1, 2006 use .html ... Internet Explorer cannot translate .xhtml (yet) Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 1, 2006 Share Posted June 1, 2006 But for linux servers, you should name them with 3 characters extension, so prefer naming them .htm(or .php if you'd introduce that server-side language) Link to comment Share on other sites More sharing options...
aspnetguy Posted June 1, 2006 Share Posted June 1, 2006 But for linux servers, you should name them with 3 characters extension, so prefer naming them .htm(or .php if you'd introduce that server-side language)<{POST_SNAPBACK}> I have hosted many pages on linux and .html works fine. Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 1, 2006 Share Posted June 1, 2006 Then its okay, but some operating systems do have troubles with them though, not sure which. Link to comment Share on other sites More sharing options...
gawain Posted June 1, 2006 Author Share Posted June 1, 2006 Thanks to everybody. One more question - I dare ask - how can I undertand that I use a linux server?Thanks again. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 1, 2006 Share Posted June 1, 2006 Do you mean -- how do you know if you are on a Linux server?Well if you are runnin ght eserver in your home you should know -- but chances are you are using a hosting company of some sort -- you'll have to contact your hosting company and ask them if the server is Windows, Linux, or Unix. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 1, 2006 Share Posted June 1, 2006 Servers these days do not have issues with extensions. The OS that had the three-character limit was DOS, which gave us the 8.3 convention that some parts of Windows still use, but even Windows 2000 server can handle any arbitrary extension, as long as you set it up with the server. That's the way it has always been. Apache, for example, uses .htaccess files. That's a file with an 8-letter extension. Windows servers are the reason ".htm" files exist, when IIS first started out the entire world was using index.html as their default page, and someone at Microsoft gets the brilliant idea to make Default.htm the default page on IIS instead of using the same thing as the rest of the world, just so that you have to set up one more thing when dealing with IIS. Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 2, 2006 Share Posted June 2, 2006 Well thank you for the information Didn't know that, Link to comment Share on other sites More sharing options...
gawain Posted June 2, 2006 Author Share Posted June 2, 2006 Again, thanks for the insights. Really ... preciuos Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now