Attributes

Syntax:

(class)
(#id)
(class#id) can be combined
{style}
[language]

Attributes in phrase elements

%{color:red}red% → <span style="color:red">red</span>

%[fr]rouge% → <span lang="fr">rouge</span>

_(big)red_ → <em class="big">red</em>

Attributes in block elements

p(bob). A paragraph → <p class="bob">A paragraph</p>

p{color:#ddd}. A paragraph → <p style="color:#ddd">A paragraph</p>

p[fr]. A paragraph → <p lang="fr">A paragraph</p>

Block attribute shorthand

p<. align left
p>. align right
p=. centered
p<>. justified
p(., p((. left indent 1em, 2em, etc.
p). right indent 1em

Examples:

h2()>. right-aligned header 2, indented 1em both sides
h3=. centered header 3
!>/image.gif! right-aligned image
p[no]{color:red}. A Norse of a different colour



You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser