JavaScript DOM Tutorial | Document Object Model in JavaScript
Video Statistics and Information
Channel: Dave Gray
Views: 2,676
Rating: undefined out of 5
Keywords: dom, document object model, dom javascript tutorial, dom in javascript, dom tutorial, document object model javascript, document object model tutorial, document object model dom, dom selectors
Id: WbG86sMd3SU
Channel Id: undefined
Length: 35min 39sec (2139 seconds)
Published: Wed Oct 14 2020
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
In this video we'll dive into the DOM (Document Object Model) in JavaScript. We explore DOM selectors, modifying CSS with selectors, HTML Collections, Nodes and Nodelists, navigating the DOM tree, and both removing and creating elements and nodes in the DOM.
✅ Quick Concepts outline:
(0:13) The Document Object Model: DOM
(0:55) Selecting an element with an ID
(2:55) Selecting an element with a query selector
(4:00) Changing the CSS with the style property
(5:45) Selecting elements by class name
(7:05) Selecting elements with querySelectorAll()
(8:10) HTMLCollection vs NodeList
(9:00) Searching within the results of a previous selector
(10:15) Selecting elements by tag name
(11:20) Applying more specific DOM selectors
(13:05) Modifying CSS with a DOM selector
(16:30) Changing text inside of an element
(17:00) Changing the HTML within a parent element
(19:54) Navigating the DOM tree
(28:40) Removing all the nodes in a parent element
(30:00) Creating new elements
(30:43) Adding new property values to the element
(32:15) Appending the new element to the DOM
(33:30) Creating new elements with a loop
If you enjoy this video, check out the ones that follow it in the playlist. I’ll continue to add more. Glad to answer your questions, too.
JavaScript DOM Tutorial | Document Object Model in JavaScript: https://youtu.be/WbG86sMd3SU