Understanding the DOM



Download free course Understanding the DOM, pdf file on 126 pages by Tania Rascia.
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.

Table of contents

  • Introduction to the DOM
  • Understanding the DOM Tree and Nodes
  • How To Access Elements in the DOM
  • How To Traverse the DOM
  • How To Make Changes to the DOM
  • How To Modify Attributes, Classes, and Styles in the DOM
  • Understanding Events in JavaScript
Pages126
Size3.4 MB
File typePDF
Downloads202
Created2022-02-03
LicenseCC BY-NC-SA
Author(s) Tania Rascia
Cover of Understanding the DOM

Download

  • Building Front-End Apps with AngularJS and Parse.com

    This tutorial book shows how to build JavaScript front-end web applications with AngularJS and the cloud storage service Parse.com. By learning from the examples provided in the book, you can quickly improve your understanding of basic concepts and techniques, and by downloading the complete code of...

  • Magento tutorial

    Download free Magento tutorial course in PDF, training file in 33 chapters and 94 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

  • The CSS Handbook

    Download free course The CSS Handbook, pdf file on 173 pages by Flavio Copes....

  • CSS Animation 101

    Download free course CSS Animation 101, pdf file on 91 pages by Donovan Hutchinson....

  • Web API Design in PDF

    Download free course intituled Web API Design . This course is intended to a beginners users, document on format pdf in 70 pages created by gidgreen.com ....

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

  • Build Your Own ASP.NET Website

    This PDF tutorial is aimed at beginner, intermediate, and advanced Web designers, looking to build their first web application with ASP.NET....

  • Angular Testing Succinctly

    Though sometimes perceived as a hurdle, testing can save developers from heartbreak in the..., download free Angular tutorial in PDF (94 pages) created by Joseph Booth ....

  • PHP tutorial for professionals

    Download free PHP tutorial course in PDF, training file in 107 chapters and 481 pages. Free unaffiliated ebook created from Stack OverFlow contributor....