wwHtmlHelpers::HtmlElement

Creates an HTML Element by its element name.

Examples:

foxpro
foxpro
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. or

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, 2025 • Updated: 2025-03-12
Comment or report problem with topic