Lesson 4 Flashcards

(23 cards)

1
Q

is a crucial concept in web development. Here’s a detailed breakdown of what it is, how it works, and how you can interact with it.

A

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does DOM stands for?

A

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

is a programming interface for web documents. It represents the structure of a document as a tree of objects.

A

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It allows programming languages (like JavaScript) to interact with the content and structure of a web page dynamically.

A

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the purpose of DOM

A

Dynamic Manipulation
Structured Access
Event Handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

It enables dynamic changes to the content, structure, and style of a document.

A

Dynamic Manipulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Provides a structured way to access and modify elements of a web page

A

Structured Access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Facilitates the addition of interactivity by allowing scripts to respond to user actions (like clicks and keystrokes).

A

Event Handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

This is the static markup that defines the content and structure of a web page.

A

HTML Document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Once the HTML document is loaded into the browser, it is parsed into a _____ structure. This allows scripts to access and manipulate the HTML content programmatically.

A

DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Static markup defining the structure and content.

A

HTML Document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Dynamic representation created by the browser. Allows scripts to modify the document structure and content.

A

DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

represents a document as a hierarchical tree of nodes. Each node corresponds to part of the document.

A

DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Represent HTML elements (e.g., <div>, <p>, <a>).</a>

A

Element Nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Represent the text content within elements.

A

Text Nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Represent the attributes of elements (though often accessed through element nodes in modern practice).

A

Attribute Nodes

17
Q

The node that contains other nodes.

18
Q

Nodes contained within a parent node.

19
Q

Nodes that share the same parent.

A

Sibling Nodes

20
Q

provides methods to interact with the DOM.

A

document object

21
Q

What are the common document methods

A

document.getElementById()
document.getElementsByClassName()
document.getElementsByTagName()
document.querySelector()
document.querySelectorAll()

22
Q

is a tree-like structure representing HTML documents.

23
Q

Allows dynamic manipulation and interaction.