Module function reference

link

A reference entry for link

Module function · HTML

link link (string url, string text[, map attributes]) ⇒ string

Creates an HTML link.

Example

YASS
$html = HTML::link("/about", "About", ["class" => "nav"])

Input: url="/about", text="About", attributes=["class" => "nav"]

Output: <a class="nav" href="/about">About</a>