# Titles and Subtitles

## Templates

`db2html.title.css`

- Create CSS for the title elements

`db2html.title.label`

- Generate the label for a title

`db2html.title.block`

- Generate a labelled block title

`db2html.title.simple`

- Generate a simple unlabelled title

`db2html.title.header`

- Generate a header-level title

`db2html.subtitle.header`

- Generate a header-level subtitle

db2html.title.css

Create CSS for the title elements

### Parameters

This template has no parameters.

db2html.title.label

Generate the label for a title

### Parameters

`node`

- The element for which to generate a label

`depth_in_chunk`

- The depth of `node` in the containing chunk

db2html.title.block

Generate a labelled block title

### Parameters

`node`

- The title element for which to generate a title

`referent`

- The element for which this is the title

db2html.title.simple

Generate a simple unlabelled title

### Parameters

`node`

- The title element for which to generate a title

`referent`

- The element for which this is the title

db2html.title.header

Generate a header-level title

### Parameters

`node`

- The title element for which to generate a title

`referent`

- The element for which this is the title

`depth_in_chunk`

- The depth of `node` in the containing chunk

`referent_depth_in_chunk`

- The depth of `referent` in the containing chunk

`depth_of_chunk`

- The depth of the containing chunk in the document

`generate_label`

- Whether to generate a label in the title

`title_content`

- The title, for divisions lacking a `title` element

db2html.subtitle.header

Generate a header-level subtitle

### Parameters

`node`

- The subtitle element for which to generate a subtitle

`referent`

- The element for which this is the subtitle

`depth_in_chunk`

- The depth of `node` in the containing chunk

`referent_depth_in_chunk`

- The depth of `referent` in the containing chunk

`subtitle_content`

- The subtitle, for divisions lacking a `subtitle` element