Re: does it really exist any xhtml 2?
- From: Lachlan Hunt <spam.my.gspot@xxxxxxxxx>
- Date: Sat, 26 Nov 2005 09:00:36 GMT
Michael Fesser wrote:
.oO(Lachlan Hunt)
There's your first mistake with attempting to use XHTML. It is advisable for you to not use .html as the file extension, but rather .xhtml, .xht or .xml
Or no extension at all.
Yes, while I agree the file extension should be left off the URI, most editors and browsers aren't configured to work with files with no extension from the local file system.
because at least then (when working from your local file system) good browsers will actually parse it as XML, not tag soup, and your web server will more likely serve it with the correct MIME type (assuming it's been configured to serve XHTML, which you may have to do yourself). text/html, which is commonly associated with .html files, is *wrong* for XHTML.
MIME types and file extensions are two completely different things.
Yes, I know, but common file extensions are commonly associated with with specific MIME types.
The first is important, the second completely irrelevant in the WWW. You can name your files whatever you like, as long as the server delivers them with the correct content type.
While that is true, it is easier for a beginner to start learning by at least using appropriate file extensions which are more likely to match the server configuration. Also, good browsers/editors are configured to recognise .xhtml, .xht, .xml, etc. as XML when working from the local file system. Of course you could give your file a .foo extension, but no browser, editor or server would be configured by default to recognise it.
-- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox .
- References:
- does it really exist any xhtml 2?
- From: Gianni Rondinini
- Re: does it really exist any xhtml 2?
- From: Lachlan Hunt
- Re: does it really exist any xhtml 2?
- From: Michael Fesser
- does it really exist any xhtml 2?
- Prev by Date: Re: Understanding simplest HTML page
- Next by Date: from aerocar 2 xhtml_1.1 example
- Previous by thread: Re: does it really exist any xhtml 2?
- Next by thread: Help: Can you make this .php less than 1 month??
- Index(es):
Relevant Pages
|