[CDATA[ window.__mirage2 = {petok:"nIBbEqsc6vyVmFaKFSFBlscwsJmVU3Lu23KKKmcMB80-21600-0.0.1.1"}; //]]> <img src="vh401.gif" alt="Valid HTML 4.01!" height="31" width="88"> 7 The global structure of an HTML document - The HEAD and BODY of a documentAssertion 7.1-1Section 7.1Assertion 7...." /> [CDATA[ window.__mirage2 = {petok:"nIBbEqsc6vyVmFaKFSFBlscwsJmVU3Lu23KKKmcMB80-21600-0.0.1.1"}; //]]> <img src="vh401.gif" alt="Valid HTML 4.01!" height="31" width="88"> 7 The global structure of an HTML document - The HEAD and BODY of a documentAssertion 7.1-1Section 7.1Assertion 7...." />
HTML Testable Assertions Section 7 The global structure of an HTML document
HTML 4.01 Test Suite - Assertions
Testable Assertions: Section 7 The global structure of an HTML document
(author)(must) An HTML document is composed of three parts: An HTML 4 document is composed of three parts: 1. a line containing HTML version information, 2. a declarative header section (delimited by the HEAD element), 3. a body, which contains the document's actual content.
(must) White space (spaces, newlines, tabs and comments) may appear before or after each section of an HTML document. [NOTE: Authors may do it, meaning that user agents must support it.]
(author)(must) A valid HTML document declares what version of HTML is used in the document. The document type declaration names the document type definition (DTD) in use for the document.
(must)(deprecated) version = cdata [CN]
Deprecated. The value of this attribute specifies which HTML DTD version governs the current document. This attribute has been deprecated because it is redundant with version information provided by the document type declaration.
(must) HEAD profile = uri [CT]
This attribute specifies the location of one or more meta data profiles, separated by white space. For future extensions, user agents should consider the value to be a list even though this specification only considers the first URI to be significant.
(must) User agents must always make the content of the TITLE element available to users, including TITLE elements that occur in frames. The mechanism for doing so depends on the user agent.
(may) In general, specifying meta data involves two steps: 1. Declaring a property and a value for that property. This may be done in two ways: a. From within a document, via the META element. b. From outside a document, by linking to meta data via the LINK element (see the section on link types). 2. Referring to a profile where the property and its legal values are defined. To designate a profile, use the profile attribute of the HEAD element.
(may) META: http-equiv = name [CI]
This attribute may be used in place of the name attribute. HTTP servers use this attribute to gather information for HTTP response message headers.
(should)(deprecated) BODY: background = uri [CT] The value of this attribute is a URI that designates an image resource. The image generally tiles the background (for visual browsers).
(must)(deprecated) BODY: alink = color [CI] This attribute sets the color of text marking hypertext links when selected by the user (for visual browsers).
(author)(must) class = cdata-list [CS]
This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.
(should) There are six levels of headings in HTML with H1 as the most important and H6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones.