The Anchor element, with its href attribute, creates a hyperlink to the web pages, files, email addresses, locations in the same page, or anything else a URL can address. If your terminal belongs to the list of terminal emulators that support links. Otherwise, you’ll see Link as regular text and the URL will be lost.

Usage

Simple example of usage Anchor element with fluent interface.

use function Thermage\anchor;
use function Thermage\render;

// ...

render (
  anchor('Thermage')
    ->href('https://awilum.github.io/thermage/')
);
Terminal
$ php thermage.php

Methods

bg Set Anchor element background color style.
blink Set Anchor element blink style.
bold Set Anchor element bold style.
border Set Anchor element border style.
borderColor Set Anchor element border color style.
color Set Anchor element text color style.
d Set Anchor element display style.
dim Set Anchor element dim style.
display Set Anchor element display style.
getShortcodes Get Anchor element shortcodes instance.
getTheme Get Anchor element theme.
getValue Get Anchor element value.
href Set Anchor element href.
italic Set Anchor element italic style.
ml Set Anchor margin left style.
mr Set Anchor margin right style.
mx Set Anchor margin both style.
pl Set Anchor padding left style.
pr Set Anchor padding right style.
px Set Anchor padding both style.
render Render Anchor element.
setShortcodes Set Anchor element shortcodes instance.
setTheme Set Anchor element theme instance.
strikethrough Set Anchor element strikethrough style.
underline Set Anchor element underline style.
value Set Anchor element value.