Understanding the DOM

JavaScript is the de facto programming language of the web, but the language itself does not include any built-in method for working with input/output (I/O), such as graphics display and sound. Instead, the web browser provides an API for accessing the HTML document in a tree structure known as the Document Object Model (DOM). The combination of JavaScript and the DOM is what allows us to create interactive, dynamic websites. Many modern frameworks, such as React, Vue, and Svelte abstract away much of the DOM from the developer, but frameworks also use the DOM under the hood. The JavaScript library jQuery was also created to make working with the DOM easier, but the modern development practice is to work with the DOM directly. In order to be a proficient web developer, having a deep understanding of what the DOM is and how to work with it is essential. The goal of this book is to provide a base understanding of the DOM, as well as explore examples of the most common and useful methods for interacting with the DOM. The topics that it covers include: - The DOM and DOM tree structure; - How to access, traverse, and modify nodes and elements in the DOM; - How to modify attributes, classes, and styles in the DOM; - Use events to make interactive, dynamic websites. Each chapter is self-contained and can be followed independently of the others. However, if you are not yet familiar with the concept of the DOM and DOM tree, it is recommended that you read the introductory chapters first.
Download free tutorial in PDF (126 pages) created by Tania Rascia .
Pages : 126
Size :
File type : HTML
Downloads: 150
Created: 2021-05-15
License: Free
Author(s): Tania Rascia
Understanding the DOM

Others DOM Tutorials

Getting started with DOM

Document Object Model Tutorial

Tutorial XML and DOM in PDF

Python and the XML

Understanding the DOM

Others related eBooks about Understanding the DOM

Real-time Linked Dataspaces

Download free course Real-time Linked Dataspaces, pdf file on 333 pages by Edward Curry....

Building Front-End Web Apps with Plain JavaScript

This book shows how to build front-end web applications with plain JavaScript, not using any (third-party) framework or library. A front-end web application can be provided by any web server, but it is executed on the user's computer device (smartphone, tablet or notebook), and not on the remote w...

Functional-Light JavaScript

This book is a balanced, pragmatic exploration of Functional Programming in JavaScript. Functional Programming (FP) is an incredibly powerful paradigm for structuring code that yields more robust, verifiable, and readable programs. ...

HTML5 Notes for Professionals

Download free course HTML5 Notes for Professionals, pdf file on 124 pages by Stack Overflow Community....

RESTful Web Services

Download free course RESTful Web Services, pdf file on 448 pages by Leonard Richardson, Sam Ru....

W3.CSS Succinctly

Download free course W3.CSS Succinctly, pdf file on 85 pages by Joseph D. Booth....

Eloquent JavaScript: A Modern Introduction to Programming

JavaScript lies at the heart of almost every modern web application, from social apps to the newest browser-based games. Though simple for beginners to pick up and play with, JavaScript is a flexible, complex language that you can use to build full-scale applications. ...

Getting started with Laravel

Download free Laravel tutorial course in PDF, training file in 65 chapters and 216 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

HTML5 Shoot 'em Up in an Afternoon

Learn how to make a simple top-down shoot 'em up in a few hours using the Phaser HTML5 game framework....

Webapps in Go

Download free course Webapps in Go, pdf file on 185 pages by Suraj Patil....