[thelist] text/plain for html files

Bill Mason evolt at accessibleinter.net
Sun Nov 23 11:05:51 CST 2003


fstorr wrote:

> Am I right in thinking that if I specify a content-type of "text/plain" 
> on an html file (with a .htm(l) exension) that the browser should render 
> it as plain text and not parse it as html and thus ignore things like 
> linked external CSS files?
> 
> I've tried to do this with a page using:
> 
> <meta http-equiv="Content-Type" content="text/plain; charset=iso-8859-1" />
> 
> but with no joy - it still gives me HTML in Moz and Opera.  Is this right?

If the server's mime type is still text/html, then Mozilla will use that 
since the server setting gets priority over the META tag.

IE will not care what you serve as either way: it will deduce the file 
is HTML by examining the content, and just render it as HTML.

Don't know what Opera does, but there are obstacles enough already.  ;)

-- 
Bill Mason
Accessible Internet
evolt at accessibleinter.net
http://www.accessibleinter.net/



More information about the thelist mailing list