FileMaker Pro 6 Developers Guide to XML/XSL (Wordware Library for FileMaker)

6.1 HTML Document Structure

The proper HTML document begins with a prolog just like an XML document. This prolog consists of the Document Type Declaration and comes in three versions. Each of these may limit or increase the usage of particular markup. Original versions of HTML used some markup that has become deprecated (outdated or revised) or obsolete. Any of these deprecated elements used in this chapter are so noted. The three !DOCTYPEs are:

XHTML has similar Document Type Declarations:

HTML and XHTML documents must have a root element to make them well formed. This root element may have attributes to further define the document. Browsers may render the page differently based upon these attributes. The version attribute specifies the version listed in the DOCTYPE. The lang attribute can list the base language of the page. The dir attribute works with the lang attribute to specify the direction of the language as it is read natively. The values of the dir attributes can be left to right (LTR) or right to left (RTL). The <dir> element has been deprecated.

<html version="4.01" lang="EN" dir="LTR|RTL"> <!-- comments are the same in HTML as in XML --> </html>

Категории