Reference · SemText · Disclosure & views
<sem-detail>
SemText element
This is the child of sem-details. Wrap the words to recall in a highlight, or use [[double brackets]]. Hiding them turns the passage into a memory exercise.
Shares its schema with
<sem-details>
— the option bullets below belong to that element's contract.
No options beyond the global attribute catalog are stated for this tag.
Children
-
<highlight>the recall targets of the passage, zero or more; emphasized and fully legible in the `plain` view, occluded and revealed per item in the `quiz` view.
Example
Live render boots with JavaScript — the authored source is alongside.
Quiz view — same passage, targets occluded
The same passage under the container's `view-as="quiz"`: each <highlight> becomes an occluded chip, keyboard-reachable (role=button), revealed per item on click or Enter/Space. Revealing changes nothing about the passage's content.
Live render boots with JavaScript — the authored source is alongside.
variant: two passages in one container
The item role of <sem-detail>: a <sem-details> container holds one or more passages, each an independent prose unit with its own <highlight> targets (plain view shown). The passage itself is never a control — reveals happen on its chips.
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/sem-details.md