Module function reference

body

A reference entry for body

Module function · HTML

body body (string content[, map attributes]) ⇒ string

Wraps content in a body element.

Example

YASS
$html = HTML::body("<p>Hello</p>", ["class" => "page"])

Input: content="<p>Hello</p>", attributes=["class" => "page"]

Output: <body class="page"><p>Hello</p></body>