wwHtmlHelpers::HtmlElement

Creates an HTML Element by its element name.

Examples:

lcHtml = HtmlElement("div","Hello World") && <div>Hello World</div>
lcHtml = HtmlElement("br")   && <br />

lcHtml = HtmlElement("div","Hello World",[ class="errordisplay"],"divHello") 
* <div class="errordisplay" id="divHello" >Hello World</div>

HtmlElement(lcElement,lcContent,lcAttributes,lcId)

Parameters

lcElement
The element's tag name like div, img, br, a etc.

lcContent
Any content you want to be embedded as content in the element. If not provided the element is created as a closed tag (ie. <img /> or <br />

lcAttributes
Optional string of attributes. Can be any string that is embedded into the opening element tag.

lcId
Optional id.


See also:

Class wwHtmlHelpers

© West Wind Technologies, 1996-2022 • Updated: 05/25/11
Comment or report problem with topic