4 - Introduction to the Document Object Model (DOM) — Topics & Learning Outcomes

📋 Module Topics🎯 Student Learning Outcomes

Module Topics

What is the DOM?

Introduces the Document Object Model as a concept, explaining what it is and why it exists as a bridge between HTML documents and JavaScript programming.

How Browsers Parse HTML into the DOM

Explains the process browsers use to read HTML markup and construct the DOM tree, including how the parsing sequence affects script execution and page rendering.

The DOM Tree Structure

Describes the hierarchical node-based structure of the DOM, covering the relationships between document, element, text, and attribute nodes.

Selecting DOM Elements

Covers the core vanilla JavaScript methods used to query and retrieve elements from the DOM, such as getElementById, querySelector, and querySelectorAll.

Manipulating DOM Elements

Explains how to read and modify element properties, attributes, styles, and text content using JavaScript once elements have been selected.

Adding and Removing DOM Nodes

Demonstrates how to dynamically create new elements, insert them into the DOM tree, and remove existing nodes using JavaScript methods.

Student Learning Outcomes

By the end of this module, students will be able to:

MO1
Describe the DOM as a hierarchical tree structure and explain how browsers parse HTML markup to construct it, including the roles of the document, element, text, and attribute nodes
Level: UnderstandType: CognitiveCourse mapping: —
MO2
Differentiate between parser-blocking scripts and scripts using the defer and async attributes, and predict how script placement affects DOM construction and page rendering
Level: AnalyzeType: CognitiveCourse mapping: —
MO3
Apply getElementById, querySelector, and querySelectorAll to locate specific elements within a DOM tree and verify selection results to prevent null-reference errors
Level: ApplyType: BehavioralCourse mapping: —
MO4
Manipulate selected DOM elements by modifying text content, HTML attributes, inline styles, and CSS classes using JavaScript DOM properties and methods such as the classList API and getComputedStyle
Level: ApplyType: BehavioralCourse mapping: —
MO5
Construct dynamic page content by creating new elements with createElement(), inserting them using appendChild(), insertBefore(), or insertAdjacentElement(), and removing or replacing existing nodes using remove(), replaceWith(), or cloneNode()
Level: CreateType: BehavioralCourse mapping: —

Course Outcomes (reference)

No course outcomes have been defined.