Introduzione ai CSS - La DTD
Monday 8 October 2007
Qual’è lo scopo della dichiarazione DOCTYPE?
La dichiarazione DOCTYPE specifica:
il tipo di elemento radice del documento, per esempio HTML;
un identificatore pubblico, per esempio: PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”;
il system identifier: “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”
Esempi di DTD:
HTML 4.01 Strict
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
XHTML 1.0 Strict
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
Enfatizza la separazione del contenuto dalla presentazione e [...]
