Skip to content

Kirby 5.0.2

Html::css()

Creates one or multiple CSS link tags

Html::css(string|array $url, string|array|null $options = null): string|null

Parameters

Name Type Default Description
$urlrequired stringorarray no default value Relative or absolute URLs, an array of URLs or @auto for automatic template css loading
$options stringorarrayornull null Pass an array of attributes for the link tag or a media attribute string

Return types

stringornull

Parent class

Kirby\Cms\Html