Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 881 Bytes

label.md

File metadata and controls

42 lines (29 loc) · 881 Bytes

HAPEL Core Method Reference


<label ...>

Description

Creates a <label> html tag.

label($child, $for, $class, $id, $style, $data, $attr);

Parameters

Parameter Required Default
$child no false
$for no null
$class no null
$id no null
$style no null
$data no null
$attr no null

Return Values

string

Example

Usage:

echo label('First Name','first-name');

Result:

<label for="first-name">First Name</label>