Skip to content

Kirby 3.8.4

Html::figure()

Creates a <figure> tag with optional caption

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

Parameters

Name Type Default Description
$content * string|array Contents of the <figure> tag
$caption string|array '' 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