<title>

Creates a title within a document, section, or other block component

<title> is a Sectional component that renders a title with default formatting to match the hierarchy of its associated sectional component. A <title> placed at the top of the document creates a document title.

Attributes and Properties

Attributes for <title>

Common to all components (9)
copy

reference. Create an independent copy of another component by reference. Enter a references a $name.

disabled

boolean. Default value: false. Whether this component is disabled and cannot be interacted with.

extend

reference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.

fixed

boolean. Default value: false. Whether this component's value is fixed and cannot be modified.

fixLocation

boolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

hide

boolean. Default value: false. Whether to hide this component from the rendered output.

isResponse

boolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.

name

text. The name used to reference this component from elsewhere in the document.

styleNumber

integer. Default value: 1. The style number used to select this component's visual styling from the available style definitions.

Properties for <title name="t">

Other (6)
$t.disabled

boolean. Whether this component is disabled and cannot be interacted with.

$t.fixed

boolean. Whether this component's value is fixed and cannot be modified.

$t.fixLocation

boolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

$t.hidden

boolean. Whether this component is hidden from the rendered output.

$t.text

text. The combined content of this component's children, as a plain text string.

$t.value

title. The combined content of this component's children.

Common to all components (4)
$t.doenetML

text. The DoenetML source code that produced this component.

$t.hide

boolean. Whether to hide this component from the rendered output.

$t.isResponse

boolean. Whether this component is treated as a response for the purposes of assessment.

$t.styleNumber

integer. The style number used to select this component's visual styling from the available style definitions.

Examples

Example: <title> for a <section>

A <title> placed inside a <section> overrides the default title for that <section>.


Example: <title> for a subsection

A <section> nested inside another <section> creates a subsection of lower hierarchy.


Example: <title> for an <example>

A <title> nested inside an <example> overrides the default title for the <example>.


Example: <title> for a <problem>

A <title> nested inside a <problem> overrides the default title for the <problem>.


Example: <title> for a <hint>

A <title> nested inside a <hint> overrides the default title for the <hint>.


Example: <title> for an <aside>

A <title> nested inside an <aside> overrides the default title for the <aside>.