<tagc>

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

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

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

Attributes and Properties

Attributes for <tagc>

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 <tagc 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 closing tag in prose

<tagc>p</tagc> renders as </p>, matching the opening <tag>p</tag> that renders as <p>. Pairing the two lets you walk the reader through a tag name without having to escape the angle brackets manually.


Example: A complete tag pair in code-like prose

When you need both ends of the tag pair, combine <tag> and <tagc> around the content placeholder.