html Class
The global method which is an alias for Canteen\HTML5\html() to use this method globally call Canteen\HTML5\HTML5::useGlobal()
Constructor
html
(
Node
-
tag
-
[childrenOrAttributes=null]
-
[attributes=null]
Parameters:
-
tag
StringThe name of the tag as a string for example 'tr', 'table', can be followed by CSS selector, e.g. 'a#backButton' or 'a.button'
-
[childrenOrAttributes=null]
Dictionary | Node | String | Array optionalIf the tag is a NodeContainer, this can be an array of attributes, another html node or some text. If the tag is a single node, this can be an array or chain of attributes
-
[attributes=null]
Dictionary | String optionalThe attributes list for container tags (e.g., 'class:selected')
Returns:
Node:
Return the html node