Prev | Current Page 584 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

A style sheet written for an XHTML document being served with a MIME
type of text/html may not work as intended if the document is then served with
a MIME type of application/xhtml+xml. For more information about MIME types,
make sure to read MIME Types (p. 411).
This can be especially important when you??™re serving XHTML documents as
text/html. Unless you??™re aware of the differences, you may create style sheets that
won??™t work as intended if the document??™s served as real XHTML.
Where the terms ???XHTML??? and ???XHTML document??? appear in the remainder of
this section, they refer to XHTML markup served with an XML MIME type. XHTML
markup served as text/html is an HTML document as far as browsers are concerned.
4 An XML document can be well-formed without being valid. Only well-formedness is a formal
requirement of XML. (Browsers use non-validating XML parsers, anyway.)
411 Differences Between HTML and XHTML
MIME Types
When a web document is requested, the web server delivers an HTTP response
comprising two parts: the headers and the body.


Pages:
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596