<practice-tree :@q="({"id":"2.3","kind":"tree","prompt":"Fill in the tree for this markup.","why":"A tree shows each element inside its parent.","lang":"html","code":"<ul><li>One</li></ul>","nodes":[{"depth":"0","label":"ul"},{"blank":"0","depth":"1","name":"2.3-blank-0","blankLabel":"Blank 1 — the list item","display":"li"}],"blanks":[{"label":"Blank 1 — the list item","accept":["li"],"display":"li"}],"answers":{"blanks":[["li"]]},"sources":[],"codeHtml":"<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>ul</span><span class=\"token punctuation\">></span></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>li</span><span class=\"token punctuation\">></span></span>One<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>li</span><span class=\"token punctuation\">></span></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>ul</span><span class=\"token punctuation\">></span></span>"})"></practice-tree>
Copy {name} to clipboardCopyCopiedCopy failedhtml code
Props
Write them with the @ prefix, and :@ for an expression. A prop in square brackets is optional.
Name
Type
Description
q
object
a prepared tree question
Color tokens
The tokens this component's styles read. Set one in _data/theme.json to change it everywhere.
Pick a color to try it in every example above.
Token
Colors
Try a color
--color-accent
Brand color: fills, buttons, rules, the masthead wash