:: Documentation >> Tutorial >>

HTML tags

All objects, which are subclasses of the generic HTML class (Active.System.HTML), are created as DIV elements by default. To create another element type, for example INPUT box, assign the required tag with setTag() function.

For convenience, several HTML classes are pre-defined in Active.HTML module:

Active.HTML.DIV
Active.HTML.SPAN
Active.HTML.IMG
Active.HTML.INPUT
Active.HTML.BUTTON
Active.HTML.TEXTAREA
Active.HTML.TABLE
Active.HTML.TR
Active.HTML.TD

It is also possible to set tag to an empty string:

obj.setTag("");

In this case the html output will consist of the object's content only.

See also:

getTag()
setTag(value)