Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2005, 06:49 PM
WebProWorld New Member
 

Join Date: Dec 2004
Location: Austin, TX ... eat your heart out.
Posts: 5
marlaerwin RepRank 0
Default XHTML specification on file names?

I read a post elsewhere in which the author said that the XHTML Specification (http://www.w3.org/TR/xhtml1/) requires HTML pages to be saved with the suffix .html rather than .htm -- but I can't find anything in the specification about file names at all. Anyone know whether this is true?
__________________
Marla Erwin
10 Sharp Austin Web Design
Award-winning Austin web design & development
Reply With Quote
  #2 (permalink)  
Old 06-16-2005, 04:36 PM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Mass, U.S.A.
Posts: 434
Conficio RepRank 0
Default

Hi there,
I'm no expert, but it does not make sense at all to me.

First of all xhtml should have nothing to do with filenames. It is a URL you are calling and that does not require any such thing as a file extension. Because, it does mat some Universal Resource Locater (URL) into some data response, which can come from a database as well as it can be mapped into a file system tree of *.html files, or into a set of script files i.e. *.php

To the contrary it is wise practice to stay away from extensions as part of the URL. It is better to define the URL name space as http://www.example.com/a-dir/first-page rather than http://www.example.com/a-dir/first-page.html. Because, it allows you to change the technology behind the scenes without changing the URL space (i.e. re-implement your site based on a PHP based CMS). By the way http://www.example.com/a-dir/ (notice the "/" at the end) would be shorthand for give me a directory listing of "a-dir" if this is allowed in the URL space. How this is handled is configured by the web-server (default on most servers is to serve the file http://www.example.com/a-dir/index.html).

I hope that answers the question.

K<o>
Reply With Quote
  #3 (permalink)  
Old 06-19-2005, 07:01 AM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default

The reason is that some servers will not recognize .htm, only .html.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #4 (permalink)  
Old 06-19-2005, 12:30 PM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Mass, U.S.A.
Posts: 434
Conficio RepRank 0
Default

DrTandem,
which servers would that be?

Are you talking about hosting companies and how they configured their servers (or left them at their defaults)? Or are you saying some server software packages, can't serve *.htm files?

Just curious

K<o>
Reply With Quote
  #5 (permalink)  
Old 06-19-2005, 12:42 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

He's saying that some server packages are configured not to host .htm files by default (and in some cases, .html). This is hosting company/server-dependent and has nothing to do with XHTML.

.xhtml extensions, on a lot of servers, are also acceptable. So it can't be a length issue, since XHTML is longer than HTML.

XHTML is a coding standard, not a file-naming convention.

It's a bit of a moot point for me, however, since I do everything in ASP anyway. But if I were to guess, I would suggest that .htm would make the most sense if only for the reason that it's consistent with the other *.3 file types that are available for online use (.jpg, .gif, .asp, .php, .xml, etc.)
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0