Reference

Guide

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

Inherited from

Kirby\Toolkit\Html

Source code

kirby/src/Toolkit/Html.php#L216