A generic container for content on an HTML page; corresponds to the <div> tag.
A generic container for content on an HTML page; corresponds to the <div> tag.
The DivElement is a generic container and does not have any semantic significance. It is functionally similar to SpanElement.
The DivElement is a block-level element, as opposed to SpanElement, which is an inline-level element.
Example usage:
DivElement div = new DivElement();
div.text = 'Here's my new DivElem
document.body.elements.add(elem);
See also: