Html::a()
Generates an <a>
tag; automatically supports mailto: and tel: links
Html::a(string $href, string|array|null $text = null, array $attr = [ ]): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$href |
string |
– | The URL for the |
$text |
string |array |null |
null |
The optional text; if |
$attr |
array |
[ ] |
Additional attributes for the tag |
Return type
string
Inherited from
Kirby\Toolkit\Html