HTML Parser Flashcards
What is the function of the HTML parser?
To parse the HTML markup into a parse tree (DOM tree).
Answer “True” or “False” to the following statement:
HTML can be defined by a context free grammar.
False.
What does DTD stand for?
Document Type Definition
What does DOM stand for?
Document Object Model
What is the root element of the DOM tree?
The “Document” object.
Answer “True” or “False” to the following statement:
Browsers create custom parsers for parsing HTML.
True
What are the two processes of the HTML parser?
Parsing and Tokenization
When are scripts in deferred mode executed?
After the document is parsed, but before the “complete” document state
Answer “True” or “False” to the following statement:
Browsers fix any invalid HTML content and go on.
True