Breadcrumbs Section. Click here to navigate to respective pages.
Chapter

Chapter
HTML5 DOM and APIs
DOI link for HTML5 DOM and APIs
HTML5 DOM and APIs book
HTML5 DOM and APIs
DOI link for HTML5 DOM and APIs
HTML5 DOM and APIs book
ABSTRACT
This chapter focuses on the Document Object Model (DOM), File, DnD, and Canvas Application Programming Interfaces (APIs). An important aspect of the new Hypertext Markup Language (HTML) 5 standard is the establishment of APIs giving JavaScript much more control over many aspects of a webpage. With cooperation from major browser vendors, the World Wide Web Consortium has been working on the DOM as a standard application programming interface for scripts to access and manipulate HTML and XML documents. A DocumentFragment node is just a tree node to hold a fragment of a DOM tree for internal tree manipulation purposes. Other types of nodes hold textual information about the HTML or XML page. Document and Element interfaces are important and provide many methods and properties useful in practice. Using the DOM for dynamic effects basically involves accessing nodes and modifying them on the DOM tree.