.
Root('')
Tag('div', {'class': 'a'})
Data('\n')
Tag('div', {'class': 'b'})
Data('\n')
.
xtag
.
.
Root('')
XTag('img', {'src': 'img_girl.jpg', 'alt': 'Girl in a jacket', 'width': '500', 'height': '600'})
Data('\n')
.
data
.
a
.
Root('')
Data('a\n')
.
declaration
.
.
Root('')
Declaration('DOCTYPE html')
Data('\n')
.
process information
.
.
Root('')
Pi('xml-stylesheet ?')
Data('\n')
.
entities
.
&
{
.
Root('')
Entity('amp')
Data('\n\n')
Char('123')
Data('\n')
.
comments
.
.
Root('')
Comment('This is a comment...')
Data('\n')
.
admonition
.
Tip
parameter allows to get a deterministic results even if we
use some random process (i.e. data shuffling).
.
Root('')
Tag('div', {'class': 'admonition tip alert alert-warning'})
Data('\n')
Tag('div', {'class': 'admonition-title', 'style': 'font-weight: bold;'})
Data('Tip')
Data('\nparameter allows...')
Data('\n')
.
image
.
.
Root('')
VoidTag('img', {'src': 'img/fun-fish.png', 'alt': 'fishy', 'class': 'bg-primary mb-1', 'width': '200px'})
Data('\n')
VoidTag('img', {'src': 'img/fun-fish.png', 'alt': 'fishy', 'class': 'bg-primary mb-1', 'width': '300px'})
Data('\n')
.