HTML Parser Flashcards

1
Q

What is the function of the HTML parser?

A

To parse the HTML markup into a parse tree (DOM tree).

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

Answer “True” or “False” to the following statement:

HTML can be defined by a context free grammar.

A

False.

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

What does DTD stand for?

A

Document Type Definition

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

What does DOM stand for?

A

Document Object Model

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

What is the root element of the DOM tree?

A

The “Document” object.

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

Answer “True” or “False” to the following statement:

Browsers create custom parsers for parsing HTML.

A

True

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

What are the two processes of the HTML parser?

A

Parsing and Tokenization

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

When are scripts in deferred mode executed?

A

After the document is parsed, but before the “complete” document state

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

Answer “True” or “False” to the following statement:

Browsers fix any invalid HTML content and go on.

A

True

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