API Documentation for: 1.1.1
Show:

html Class

Namespace: global

The global method which is an alias for Canteen\HTML5\html() to use this method globally call Canteen\HTML5\HTML5::useGlobal()

Constructor

html

(
  • tag
  • [childrenOrAttributes=null]
  • [attributes=null]
)
Node

Parameters:

  • tag String

    The 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 optional

    If 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 optional

    The attributes list for container tags (e.g., 'class:selected')

Returns:

Node:

Return the html node

Item Index