PHP Class WPDKHTMLTagLabel

Remeber to add this tag in WPDKHTMLTagName
Author: =undo= ([email protected])
Inheritance: extends WPDKHTMLTag
Show file Open project: wpxtreme/wpdk Class Usage Examples

Public Properties

Property Type Description
$for string Specifies which form element a label is bound to. Value: element_id
$form string New in HTML 5. Specifies one or more forms the label belongs to. Value: form_id

Public Methods

Method Description
__construct ( string $content = '' ) Create an instance of WPDKHTMLTagLabel class

Method Details

__construct() public method

Create an instance of WPDKHTMLTagLabel class
public __construct ( string $content = '' )
$content string HTML inner (or adjacent) content

Property Details

$for public property

Specifies which form element a label is bound to. Value: element_id
public string $for
return string

$form public property

New in HTML 5. Specifies one or more forms the label belongs to. Value: form_id
public string $form
return string