Prev | Current Page 29 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

The most common is

If you copy a DOCTYPE or
namespace from some other site,
make sure that the URL is absolute
(that is, it starts with http:// followed
by a complete path to the document).
Some sites (including W3C,
of course) host their own DOCTYPE
and namespace ?¬? les, so they can
use relative URLs to them. But if you
use these URLs as is, with a different
server that doesn??™t host these ?¬? les,
your pages may behave unpredictably
because the URLs aren??™t pointing
at anything.
You can learn more about Quirks
mode at the Dive into Mark Web site
(http://diveintomark.org/archives/
2002/05/29/quirks_mode).
Because the DOCTYPE (and the XML
namespace and content type discussed
in items 2 and 3) are a pain to
type, they are in the page templates
on the Stylin??™ Web site (www.stylinwithcss.
com). You can use these as
a starting point for your own XHTML
documents. Just pick whichever
of the three (Strict, Transitional, or
Frames) DOCTYPEs you want to use.
STYLIN??™ WITH CSS - CHAPTER 1 14
This simply states what character coding was used for the document.
ISO-8859-1 is the Latin character set, used by all standard
?¬‚ avors of English. If your next site is going to be in Cyrillic
or Hebrew, you can ?¬? nd the appropriate content types on
Microsoft??™s site (http://msdn.


Pages:
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41