Reference · SemText · Definitions & citations
<sem-tag-attr>
SemText element
The child of sem-tag-def. You write the attribute's name and type, add the required flag when it must be present, and the description text is what readers see in that row.
Shares its schema with
<sem-tag-def>
— the option bullets below belong to that element's contract.
No options beyond the global attribute catalog are stated for this tag.
Example
sem-tag-attr.html
source
1
<sem-tag-def tag="sem-note" name="Note" group="annotation"
2
children="sem-note-body sem-note-summary">
3
An inline annotation with an optional variant and a collapsible body.
4
<sem-tag-attr name="variant" type="string" allowed="tip,warning,danger" default="tip">Display variant.</sem-tag-attr>
5
<sem-tag-attr name="collapsed" type="boolean">Starts hidden.</sem-tag-attr>
6
</sem-tag-def>
render
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/sem-tag-def.md