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

  • PHP5 web programming

    This PDF tutorial shows how to program a dynamic web site using PHP5 ,free training lesson under 24 pages designated to the beginners....

  • Lisp Web Tales

    Download free course Lisp Web Tales, pdf file on 91 pages by Pavel Penev....

  • CSS in Depth

    This book exposes you to a world of CSS techniques that range from clever to mind-blowing. This instantly useful book is packed with creative examples and powerful best practices that will sharpen your technical skills and inspire your sense of design....

  • Get started with HTML5

    This tutorial aim to provide a gentle introduction to these amazing new web technologies, and to show you some cool ways of incorporating them into your websites....

  • PHP Notes for Professionals

    PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically....

  • Developing Backbone.js Applications

    Backbone.js is a JavaScript library with a RESTful JSON interface, and is loosely based on the model-view-controller (MVC) application design paradigm. Backbone.js is known for being lightweight, as its only dependency is on one JavaScript library, Underscore.js. It is designed for developing sing...

  • CSS Animation 101

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

  • Getting help with Django documentation

    In this tutorial you will find everything you need to know about Django, complet and free training document under 1860 pages....

  • Webapps in Go

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

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