Module function reference

style

A reference entry for style

Module function · HTML

style style (string css) ⇒ string

Creates an inline style element.

Example

YASS
$html = HTML::style("body { color: red; }")

Input: body { color: red; }

Output: <style>body { color: red; }</style>