Download KompoZer and Nvu User Guide
Transcript
Appendix 3 – Doctypes A 3.1 Introduction Doctype abbreviates 'Document type Declaration' which tells a browser which 'Document type definition' (DTD) to use to interpret a page. The Doctype also includes the URL of a file containing the DTD details. The Doctype must appear on the first line of code for a page. Note Actually on an XHTML page an XML declaration may precede this but this can result in problems with some browsers. KompoZer does not insert this declaration. Files without an XML declaration use UTF-8 character coding. A 3.2 Doctypes supported Note Where the interests you. icon occurs click it to reveal differences in the behaviour of Nvu if this The Doctypes supported by KompoZer are HTML Transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> HTML Strict <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> XHTML Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> XHTML Strict <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Note For HTML Doctypes when Nvu inserts a document type declaration, it omits the URL This has the undesirable effect of triggering some versions of MSIE into the so called 'quirks mode'. To set the Doctype for a new file: 97 of 135