Module function reference

image

A reference entry for image

Module function · HTML

image image (string src[, string alt[, map attributes]]) ⇒ string

Creates an HTML image element.

Example

YASS
$html = HTML::image("logo.png", "ZPE logo")

Input: src="logo.png", alt="ZPE logo"

Output: <img src="logo.png" alt="ZPE logo">