Reference · SemText · Definitions & citations
<sem-property>
SemText element
The key attribute is the term; the text inside is its meaning. Add role=definition when the value defines the key.
Shares its schema with
<sem-properties>
— the option bullets below belong to that element's contract.
No options beyond the global attribute catalog are stated for this tag.
Example
Live render boots with JavaScript — the authored source is alongside.
variant: compact `::` sugar without `key`
`<sem-property>storage :: httpOnly cookie</sem-property>` is legal authoring, and the runtime does not parse `::` — the text renders verbatim in the value column and no term is drawn. Sugar authors therefore also write `key` (conventions §3); the second row shows that pair, where the `key` attribute is the term and wins.
Live render boots with JavaScript — the authored source is alongside.
variant: multi-line value
A value keeps its authored whitespace (schema: keys wrap, values keep whitespace): each authored line renders as its own line. The preserve-whitespace rule ships with the next vocabulary sync — today's shipped render still collapses the line breaks here.
Live render boots with JavaScript — the authored source is alongside.
variant: glossary term with prose anchor
Inside `view-as="glossary"` a property is a term: it stacks definition under term and its `id` is a plain-anchor target. With the reading bundle live the prose link gains a hover/focus preview of the pair (`Esc` closes; the anchor still navigates); with no script the block stays a definition list and the link highlights the property via `:target` — nothing hidden either way.
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/sem-properties.md