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 .
Pages126
Size
File typeHTML
Downloads342
Created2021-05-15
LicenseFree
Author(s)Tania Rascia
Cover of Understanding the DOM

Download

  • 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 in Action

    HTML5 is not a few new tags and features added to an old standard - it's the foundation of the modern web, enabling its interactive services, single-page UI, interactive games, and complex business applications. With support for standards-driven mobile app development, powerful features like local s...

  • The React Beginner's Handbook

    The React Beginner's Handbook follows the 80/20 rule: learn in 20% of the time the 80% of ..., download free React tutorial in PDF (40 pages) created by ....

  • 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....

  • Real-time Linked Dataspaces

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

  • JavaScript: A Crash Course in PDF

    Free PDF tutorial to download intituled JavaScript: A Crash Course intended to beginners, course in 28 pages created by well known author and developer....

  • Node.JS tutorial for professionals

    Download free Node.JS tutorial course in PDF, training file in 111 chapters and 334 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

  • Transforms in CSS

    Download free course Transforms in CSS, pdf file on 42 pages by Eric A. Meyer....

  • Learning Node.js

    Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 ..., download free Node.js tutorial in PDF (414 pages) created by ....

  • Three.js Cookbook

    Modern browsers are becoming more powerful each year and in recent years have adopted WebG..., download free Three.js tutorial in PDF (300 pages) created by ....