subsection

subsection has these attributes...


bgcolor

If a bgcolor attribute value is specified for subsection, the text area should be displayed with a coloured or tinted background.

Special topic See "Borders, boxed text and backgrounds" for information on using subsection to create boxed text and coloured backgrounds.

Acceptable values for bgcolor

Hexadecimal codes should be used for colour values.

Black = #000000 Green = #008000 
Silver = #C0C0C0 Lime = #00FF00 
Gray = #808080 Olive = #808000 
White = #FFFFFF Yellow = #FFFF00 
Maroon = #800000 Navy = #000080 
Red = #FF0000 Blue = #0000FF 
Purple = #800080 Teal = #008080 
Fuchsia = #FF00FF Aqua = #00FFFF 

For a full list of hex codes, see http://www.hotwired.com/webmonkey/reference/color_codes/

Value(s)

CDATA

Default Value

#IMPLIED

border

If a border is required around the text area, a border attribute value should be specified. Allowable values are listed below. (These are taken from HTML 4 table@frame attribute values which will usually be how boxed text will be displayed in HTML):

Value Explanation
above Top border only
below Bottom border only
hsides Both top and bottom borders
vsides Both left and right side borders
lhs Left border only
rhs Right border only
box All borders (top, bottom, left and right) i.e. a box
void No borders

[?DOES THIS NEED TYPES, OFFSETS, WIDTH ETC?]

Special topic See "Borders, boxed text and backgrounds" for information on using subsection to create boxed text and coloured backgrounds.

Value(s)

CDATA

Default Value

#IMPLIED

id

An ID number for the subsection. See IDPrefixes.htm.

Value(s)

ID

Default Value

#REQUIRED

language

Language codes should be specified using the 2-letter ISO 639 codes. A quick reference is provided here.

Value(s)

CDATA

Default Value

en

level

The level of subsection. Must be numeric, 1 or greater.

Value(s)

Default Value

#REQUIRED

relativesize

If the subsection is to be displayed in a different font size, a relative value should be specified. Allowable values are:

ValueExplanation
largeThe section of text is displayed in a larger font size (determined by a pre-defined stylesheet)
smallThe section of text is displayed in a smaller font size (determined by a pre-defined stylesheet)

Value(s)

CDATA

Default Value

#IMPLIED

type

If unknown then type is miscellaneous.

Example top-level subsection types:

ValueExplanation
referencesA bibliography, cited literature or further reading list
acknowledgementAcknowledgements belonging to an article
introductionA subsection of the main body text of an article
materials_and_methodsditto
resultsditto
conclusionditto
discussionditto
onlineThe block of text should be displayed in the online version only and not in print
printThe block of text should be displayed in the print version only and not online

A list of all elements which have type attributes is available here.

Value(s)

CDATA

Default Value

#IMPLIED
Back to subsection


Created: Tue Dec 23 14:02:01 2003