class Tag

Properties

array $attributes
string $content

Methods

__construct(string $tag_name)

Constructor

string
get_tag_name()

Get the tag name

string
render()

Render the HTML tag as a string

Details

at line 19
__construct(string $tag_name)

Constructor

Parameters

string $tag_name

The name of the HTML tag

at line 28
string get_tag_name()

Get the tag name

Return Value

string

The name of the tag

at line 50
string render()

Render the HTML tag as a string

Return Value

string

The HTML representation of the tag