August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Document.createElement( ): create a new Element node — DOM Level 1 Core:
Element createElement(StringtagName)
throws DOMException;tagName
The tag name of the Element to be created. Since HTML tags are case-insensitive, you may use any capitalization for HTML tag names. XML tag names are case-sensitive.
A newly created Element node with the specified tag name.
This method throws a DOMException with a code of INVALID_CHARACTER_ERR if
tagName contains an illegal
character.
Read now
Unlock full access