GUIDE 7 — FULL ELEMENT REFERENCE
home | guide index
the \ expander
marktxt extends into full html replacement with the \ expander.
after \, read exactly 2 characters. the second character determines type:
- letter + letter = element (
\bb = button, \th = thead)
- letter +
. = element (\d. = div, \n. = nav)
- letter +
: = attribute (\a: = generic, \i: = id)
block elements close with ;| and inline elements close with ;.
attributes
| shortcut | html output | example |
| ?:value;" | class="value" | ?:box,card;" = class="box card" |
| $:value;" | style="value" | $:color>red;" = style="color:red" |
| \i:value;" | id="value" | \i:main;" = id="main" |
| \a:key>val;" | key="val" | \a:type>email;" = type="email" |
| \a:flag;" | flag (boolean) | \a:disabled;" = disabled |
| \e:name;" | entity | \e:copy;" = © |
dot-padded elements (page structure)
| marktxt | html | closer | description |
| \b. | body | ;| | document body |
| \c. | canvas | ;| | drawing surface |
| \d. | div | ;| | division / container |
| \f. | footer | ;| | page or section footer |
| \g. | figure | ;| | figure container |
| \h. | header | ;| | page or section header |
| \j. | script | ;| | javascript |
| \k. | link | ;| | resource link (void) |
| \l. | label | ;. | form label |
| \m. | main | ;| | main content |
| \n. | nav | ;| | navigation |
| \o. | option | ;. | select option |
| \p. | template | ;| | web component template |
| \q. | (raw) | ;| | passthrough (svg, mathml) |
| \r. | article | ;| | article |
| \s. | span | ;. | inline container |
| \t. | table | ;| | table |
| \u. | audio | ;| | audio player |
| \v. | video | ;| | video player |
| \w. | aside | ;| | sidebar / tangent |
| \x. | section | ;| | thematic section |
| \y. | style | ;| | stylesheet block |
double-letter elements
| marktxt | html | closer | description |
| \aa | area | ;| | image map region (void) |
| \bb | button | ;. | clickable button |
| \cc | caption | ;. | table caption |
| \dd | details | ;| | disclosure widget |
| \ee | embed | ;| | external plugin (void) |
| \ff | form | ;| | form container |
| \gg | figcaption | ;. | figure caption |
| \hh | head | ;| | document head |
| \ii | input | ;| | input field (void) |
| \jj | iframe | ;| | inline frame |
| \kk | kbd | ;. | keyboard input |
| \ll | legend | ;. | fieldset caption |
| \mm | meta | ;| | metadata (void) |
| \nn | noscript | ;| | no-script fallback |
| \oo | object | ;| | embedded object |
| \pp | picture | ;| | responsive image |
| \rr | ruby | ;. | ruby annotation |
| \ss | select | ;| | dropdown |
| \tt | textarea | ;| | text area |
| \uu | summary | ;. | disclosure heading |
| \vv | var | ;. | variable |
| \ww | dialog | ;| | dialog box |
| \xx | search | ;| | search landmark |
| \yy | slot | ;. | web component slot |
mnemonic elements (grouped by parent)
table group
| marktxt | html | closer | description |
| \th | thead | ;| | table head group |
| \tb | tbody | ;| | table body group |
| \tf | tfoot | ;| | table foot group |
| \tr | tr | ;| | table row |
| \td | td | ;. | table cell |
| \tw | th | ;. | table header cell |
| \tg | colgroup | ;| | column group |
| \tk | col | ;| | column (void) |
form group
| marktxt | html | closer | description |
| \fd | fieldset | ;| | field group |
| \fg | optgroup | ;| | option group |
| \fk | datalist | ;| | input suggestions |
| \fp | output | ;. | calculated result |
media group
| marktxt | html | closer | description |
| \ms | source | ;| | media source (void) |
| \mk | track | ;| | subtitles / captions (void) |
| \mp | map | ;| | image map |
head group
| marktxt | html | closer | description |
| \ht | title | ;. | page title |
inline semantics
| marktxt | html | closer | description |
| \im | mark | ;. | highlight |
| \it | time | ;. | date / time |
| \ia | abbr | ;. | abbreviation |
| \ic | cite | ;. | citation |
| \ix | dfn | ;. | definition |
| \ip | samp | ;. | sample output |
| \il | small | ;. | side comment |
| \iq | q | ;. | inline quote |
| \iw | wbr | ;. | word break (void) |
progress and meter
| marktxt | html | closer | description |
| \pg | progress | ;. | progress bar |
| \pm | meter | ;. | measurement gauge |
description list
| marktxt | html | closer | description |
| \dl | dl | ;| | description list |
| \dt | dt | ;. | description term |
| \dc | dd | ;. | description detail |
ruby
| marktxt | html | closer | description |
| \rt | rt | ;. | ruby text |
| \rp | rp | ;. | ruby parenthesis |
rare
| marktxt | html | closer | description |
| \bi | bdi | ;. | bidi isolate |
| \bo | bdo | ;. | bidi override |
| \da | data | ;. | machine-readable |
| \in | ins | ;. | inserted text |
| \de | del | ;. | deleted text |
| \ad | address | ;| | contact info |
| \hg | hgroup | ;| | heading group |
| \mn | menu | ;| | toolbar menu |
| \ba | base | ;| | base URL (void) |
void elements (self-closing)
these elements have no content — attributes then ;| immediately.
\k. \ii \mm \aa \ee \tk \ms \mk \iw \ba
;\ii\a:type>email;\i:email;" ;| <input type="email" id="email">
;\mm\a:charset>utf-8;" ;| <meta charset="utf-8">
;\k.\a:rel>stylesheet;\a:href>/s.css;" ;| <link rel="stylesheet" href="/s.css">
core operators (built-in, no \ needed)
these are part of base .mt — they have their own operators:
| marktxt | html | description |
| ;^ text ;. | strong | bold |
| ;% text ;. | em | italic |
| ;` text ;. | code | inline code |
| ;' block ;. | pre + code | code block |
| ;- item ;. | li (in ul) | bullet |
| ;N. item ;. | li (in ol) | numbered |
| ;+ item ;. | checkbox | unchecked |
| ;* item ;. | checkbox | checked |
| ;< text ;. | blockquote | quote |
| ;} url ;. | a | plain link |
| ;] text ;. ;}url ;. | a | linked text |
| ;{ alt ;. ;}url ;. | img | image |
| ;[ cell ; | td | table cell |
| ;~ text ;. | p | paragraph |
| ;! ;. | br | line break |
| ;& ;. | hr | divider |
| ;# text ;. | (none) | comment |
| ;\st text ;. | del | strikethrough |
| ;\sp text ;. | sup | superscript |
| ;\sb text ;. | sub | subscript |
| ;\fn text ;. | small | footnote |
| ;\d. ;| | div | block container |
| ;\s. ;. | span | inline container |
reference links
want to compare syntax? check the official docs:
prev: structure | next: escaping and tips