C H A P T E R  4

Serving and Configuration

The correct appearance and handling of web documents cannot be guaranteed simply by applying strict, error-free markup. Web server configuration has a significant impact on web site appearance, operation, and behavior. Documents should be served with the proper media type and character encoding. Content negotiation can be used to serve various document versions to browsers supporting the corresponding media types. XHTML documents can be served as either HTML or XML, but there is a huge difference in processing. XML files are processed by XML parsers that are far more error sensitive than SGML parsers. XHTML served as XML involves the risk that the document cannot be rendered at all. On the other hand, ...

Get Web Standards: Mastering HTML5, CSS3, and XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.