HTML 4.01 Test Suite - Assertions

Testable Assertions: Section 10 Lists


Valid HTML 4.01!


10 Lists - Unordered, Ordered, and Definition Lists

Assertion 10.1-1

Reference: Section 10.1
(author)(must) All lists must contain one or more list elements.
Tests: None

Assertion 10.1-2

Reference: Section 10.1
(may) Lists may be nested.
Tests: None

Assertion 10.1-3

Reference: Section 10.1
(may) Different list types may be used together.
Tests: None

Assertion 10.2-1

Reference: Section 10.2
(author)(must) Start tags and end tags for unordered lists (UL) and ordered lists (OL) are required.
Tests: None

Assertion 10.2-2

Reference: Section 10.2
(author)(must) Start tags for list items (LI) are required. End tags for list items (LI) are optional
Tests: None

Assertion 10.2-3

Reference: Section 10.2
(must) (deprecated) type = style-information [CI] This attribute sets the style of a list item. Currently available values are intended for visual user agents. For the UL element, possible values for the type attribute are disc, square, and circle. For the OL element, possible values for the type attribute are 1, a, A, i, and I. These values are case-insensitive.
Tests: None

Assertion 10.2-4

Reference: Section 10.2
(must) (deprecated) start = number [CN] For OL only. This attribute specifies the starting number of the first item in an ordered list. The default starting number is "1". Note that while the value of this attribute is an integer, the corresponding label may be non-numeric. Thus, when the list item style is uppercase latin letters (A, B, C, ...), start=3 means "C". When the style is lowercase roman numerals, start=3 means "iii", etc.
Tests: None

Assertion 10.2-5

Reference: Section 10.2
(must) (deprecated) value = number [CN] For LI only. This attribute sets the number of the current list item. Note that while the value of this attribute is an integer, the corresponding label may be non-numeric (see the start attribute).
Tests: None

Assertion 10.2-6

Reference: Section 10.2
(may) (deprecated) compact [CI] When set, this boolean attribute gives a hint to visual user agents to render the list in a more compact way. The interpretation of this attribute depends on the user agent.
Tests: None

Assertion 10. 2-7

Reference: Section 10. 2
(must) Ordered and unordered lists are rendered in an identical manner except that visual user agents number ordered list items.
Tests: None

Assertion 10.2-8

Reference: Section 10.2
(must) Unordered list items are not numbered.
Tests: 10_2-BF-01.html

Assertion 10.2-9

Reference: Section 10.2
(must) Both ordered and unordered lists are made up of sequences of list items defined by the LI element.
Tests: 10_2-BF-01.html

Assertion 10.2-10

Reference: Section 10.2
(may) Authors can reset the number of a list item by setting its value attribute. Numbering continues from the new value for subsequent list items.
Tests: None

Assertion 10.3-1

Reference: Section 10.3
(author)(must) Start tag and end tag for definition lists (DL) are required.
Tests: None

Assertion 10.3-2

Reference: Section 10.3
(author)(must) Definition lists vary only slightly from other types of lists in that list items consist of two parts: a term and a description. The term is given by the DT element and is restricted to inline content. The description is given with a DD element that contains block-level content.
Tests: 10_3-BF-01.html

Assertion 10.3.1-1

Reference: Section 10.3.1
(should) Visual user agents generally indent nested lists with respect to the current level of nesting.
Tests: None

Assertion 10.3.1-2

Reference: Section 10.3.1
(should) For the UL element, possible values for the type attribute are disc, square, and circle. The default value depends on the level of nesting of the current list. These values are case-insensitive. How each value is presented depends on the user agent. User agents should attempt to present a "disc" as a small filled-in circle, a "circle" as a small circle outline, and a "square" as a small square outline.
Tests: None

Assertion 10.3.1-3

Reference: Section 10.3.1
(must) For the OL element, possible values for the type attribute are summarized in the table below (they are case-sensitive):
Type Numbering style
1 arabic numbers 1, 2, 3, ...
a lower alpha a, b, c, ...
A upper alpha A, B, C, ...
i lower roman i, ii, iii, ...
I upper roman I, II, III, ...
Tests: None

Assertion 10.4-1

Reference: Section 10.4
(must)(deprecated) DIR and MENU are deprecated. Both elements have the same structure as UL, just different rendering. In practice, a user agent will render a DIR or MENU list exactly as a UL list
Tests: None