friends of dufferin grove park
Website - Technical - Organizational Block Level Elements

These organizational block level elements provide for presentation of content in a highly structured and succinct manner.

On this page:

List elements

Unordered lists

Unordered lists are bulleted items:

  • Item 1
  • Item 2
  • Item 3

Lists can be nested, one inside another:

  • Item 1
    • Sub-Item 1
    • Sub-Item 2
    • Sub-Item 3
  • Item 2
    • Sub-Item 4
      • Sub-Item 7
      • Sub-Item 8
    • Sub-Item 5
    • Sub-Item 6

Note that sub-lists are enclosed in a line item tagset (<li></li>) after a line item text section, not directly in the unordered list tagset (<ul></ul>). The unordered list can contain only line item elements, whereas line item elements can contain both inline and general block level elements.

Ordered lists

Ordered lists are numbered items:

  1. Item 1
  2. Item 2
  3. Item 3

Lists can be nested, one inside another:

  1. Item 1
    1. Sub-Item 1
    2. Sub-Item 2
    3. Sub-Item 3
  2. Item 2
    1. Sub-Item 4
      1. Sub-Item 7
      2. Sub-Item 8
    2. Sub-Item 5
    3. Sub-Item 6

As with unordered lists, ordered sub-lists are enclosed in a line item tagset (<li></li>) after a line item text section.

Definition lists

The definition list is like a lookup or glossary:

Term one
Definition of term one
Term two
Definition of term two
Term three
Definition of term three
"Contents" variants

We define "contents" variants of these lists, especially for use in table-of-contents type sections, such as "On this page" and "Related pages" sections of our webpages. Here are the three list types with the "contents" class modifier. Note that their font sizes have been maintained at standard size as a result of the "contents" class modifier:

  • Item 1
  • Item 2
  1. Item 1
  2. Item 2
Term one
Definition of term one
Term two
Definition of term two

Table element

We've used tables for simple tabular presentations. If you need one, we've provided a couple of templates with a standard look, which can be invoked by attaching one of the class modifiers "standard" or "numeric".

Here is a quick review of the elements related to the table object:

The table caption

The caption tagset must appear right after the opening <table> tag.

Horizontal Table Grouping: Column Groups, Columns, Header Cells, and Data Cells

The <colgroup></colgroup> and <col></col> tagsets must appear before any other horizontal or vertical grouping tags. They help the browser anticipate styles and structure of header cells and data cells to come. In our template <col></col> tagsets must be enclosed in <colgroup></colgroup> tagsets. You can use the <col> elements to specify column widths by adding the width attribute like this: <col class="data" style="width:50px">. The header cells (<th></th>) and data cells (<td></td>) hold the data. Header and data cells must be enclosed in row tagsets (<tr></tr>) for each row.

Vertical Table Grouping: Head, Body, Foot, and Rows

The head, body, and foot tagsets provide wrappers for row groupings to allow the browser to anticipate style for the respective contents. Head and foot tagsets must appear before body tagsets. Header and data cells must be enclosed in row tagsets (<tr></tr>) for each row.

All of which produces this:

Caption goes here
Top left Data col Data col
Totals 3-2 3-4
First Row 1-1 1-2
Second Row 2-1 2-2

Change the table class to "numeric" (<table class="numeric">), and the data columns are right-aligned:

Caption goes here
Top left Data col Data col
Totals 3-2 3-4
First Row 1-1 1-2
Second Row 2-1 2-2

If you scale it up, just keep everything symmetrical.