You are here: Re: very basic question about xhtml « HTML « IT news, forums, messages
Re: very basic question about xhtml

Posted by John Salerno on 01/25/06 07:14

Mark Parnell wrote:
> Deciding to do something for the good of humanity, John Salerno
> <johnjsal@NOSPAMgmail.com> declared in alt.html:
>
>> I have to admit I don't know what it means to "serve" a document as a
>> certain type. I assume this is something you put as an attribute in the
>> head tag, or a meta tag?
>
> No, it's an HTTP header that the server sends with the file.
>
>> But is it necessary?
>
> Absolutely. Any file served from a web server will come along with a
> header that states the mime type. For HTML documents, this is text/html.
> For true XHTML, it is application/xml+xhtml. Problem is, IE doesn't
> accept files served as application/xml+xhtml. But by serving an XHTML
> file as text/html, you are telling the browser it is actually an HTML
> file, and so it will be parsed as HTML rather than XHTML.
>

Is this something you add yourself, or something the server does? I've
never seen this step in any of the "how to" stuff I've read on XHTML.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация