<tagc>
<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)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. 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.disabledboolean. Whether this component is disabled and cannot be interacted with.
$t.fixedboolean. Whether this component's value is fixed and cannot be modified.
$t.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$t.texttext. The combined text content of this component's children, with optional begin/end delimiters.
Common to all components (4)
$t.doenetMLtext. The DoenetML source code that produced this component.
$t.hideboolean. Whether to hide this component from the rendered output.
$t.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$t.styleNumberinteger. 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.