Creates an element with the specified tag.
Syntax
HRESULT CreateElement( ELEMENT_TAG_ID tagID, OLECHAR *pchAttributes, IHTMLElement **ppElement );
Parameters
- tagID
- ELEMENT_TAG_ID enumeration that specifies the type of tag to create.
- pchAttributes
- Address of an OLECHAR structure that specifies the attributes of the element.
- ppElement
- Address of a pointer to an IHTMLElement interface that returns the newly created element.
Return Value
Returns S_OK if successful, or an error code otherwise.
See Also
CloneElement