Skip to content

Kirby 6.0.1

Html::img()

Generates an <img> tag

Html::img(string $src, array $attr = []): string

Parameters

Name Type Default Description
$srcrequired string no default value The URL of the image
$attr array [] Additional attributes for the <img> tag

Return type

string

Parent class

Kirby\Toolkit\Html