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 |
---|---|---|---|
$contentrequired | string orarray |
no default value | Contents of the <figure> tag |
$caption | string orarray |
''
|
Optional <figcaption> text to use |
$attr | array |
[ ]
|
Additional attributes for the <figure> tag |
Return type
string
The generated HTML