Skip to content

Kirby 4.4.1

Html::figure()

Creates a <figure> tag with optional caption

Html::figure(array|string $content, array|string|null $caption = '', array $attr = [ ]): string

Parameters

Name Type Default Description
$content * array|string Contents of the <figure> tag
$caption array|string|null '' Optional <figcaption> text to use
$attr array [ ] Additional attributes for the <figure> tag

Return type

string

Parent class

Kirby\Cms\Html inherited from Kirby\Toolkit\Html