<tage>

Renders enclosed text as a self-closing tag, `< />`

<tage> is a Paragraph Markup component that renders its content as a self-closing tag (<.../>). It is the empty-tag counterpart to <tag> (which renders an opening tag <...>) and <tagc> (which renders a closing tag </...>).

Use these markers in prose when you need to display tag names without the surrounding markdown trying to parse them as actual DoenetML.

Attributes and Properties

Attributes for <tage>

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 <tage name="t">

Other (5)
$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 text content of this component's children, with optional begin/end delimiters.

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: Refer to a self-closing tag in prose

<tage>image</tage> renders as <image/>, the self-closing form of the element. Compare with <tag>image</tag>, which renders as <image>.


Example: Mix tag forms in one sentence

All three forms — <tag> (opening), <tage> (self-closing), and <tagc> (closing) — can be mixed freely in prose. Each produces only the surrounding delimiters and the bare tag name; neither parses the content as DoenetML nor produces a working element.