# Writer
HTML5 figure with caption and content.
```
% pandoc -f native -t html5
[Figure ("fig-id",[],[]) (Caption Nothing [Plain [Str "caption"]]) [Para [Str "content"]]]
^D
```
HTML5 figure with NO caption and content.
```
% pandoc -f native -t html5
[Figure ("fig-id",[],[]) (Caption Nothing []) [Para [Str "content"]]]
^D
```
HTML4 figure with caption and content.
```
% pandoc -f native -t html4
[Figure ("fig-id",[],[]) (Caption Nothing [Plain [Str "caption"]]) [Para [Str "content"]]]
^D
```
HTML4 figure with NO caption and content.
```
% pandoc -f native -t html4
[Figure ("fig-id",[],[]) (Caption Nothing []) [Para [Str "content"]]]
^D
```
# Reader
Figure with caption and multiple elements.
```
% pandoc -f html -t native
^D
[ Figure
( "" , [ "important" ] , [] )
(Caption Nothing [ Plain [ Str "CAP2" ] ])
[ Plain
[ Image ( "" , [] , [] ) [] ( "../media/rId25.jpg" , "" ) ]
, BulletList [ [ Plain [ Str "ITEM" ] ] ]
]
]
```
Figure without caption.
```
% pandoc -f html -t native
^D
[ Figure
( "" , [ "important" ] , [] )
(Caption Nothing [])
[ Plain
[ Image ( "" , [] , [] ) [] ( "../media/rId25.jpg" , "" ) ]
, BulletList [ [ Plain [ Str "ITEM" ] ] ]
]
]
```