Reference · SemText · Facts & recall
<sem-facts>
SemText element
You wrap sem-fact children in it and pick a view with view-as. The view only changes how the facts are shown — the facts themselves stay the same, and machines always read all of them.
Example
Live render boots with JavaScript — the authored source is alongside.
view-as omitted — read mode, every fact open
The deck above read as a list: `list` is the default `view-as`, so the attribute is simply absent. Every fact renders in document order with statement AND conclusion visible, and there is no chrome — nothing interactive. The `incorrect-statement` children are quiz decoys, not assertions: hidden once the script drives the document, and with JS off they stay visible, prefixed "incorrect statement".
Live render boots with JavaScript — the authored source is alongside.
view-as="quiz" — scored recall
The same three facts under `view-as="quiz"`: every question renders with prev/next chrome, and each conclusion stays hidden until you pick it. `.sem-quiz-options` is generated — buttons shuffled from a seed derived from the container id (stable across reloads), one option per candidate: the fact's explicit `incorrect-statement` children plus sibling conclusions up to three, and the conclusion itself marked `data-correct`. One answer per question; the meter then reads `N/M · score C/A`, a correct pick marks green, and a miss marks both the wrong pick and the correct option — a miss teaches.
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/sem-facts.md