Document Flashcards
The DOM specification is called ___
Document Living Standard
What is DOM
DOM is the Document Object Model.
It represents all elements on the page as objects for manipulation.
the ‘document’ object is the main entry point to the page.
Which model is used to represent CSS?
CSSOM(CSS Object model)
What is BOM?
Additional objects provided by browser, not part of DOM
this property holds information about the current browser
navigator.userAgent
this property holds information about the browser
navigator.platform
navigate the window to new url ___
location.href = /* new url */
Which Object Model do alert/confirm/prompt belong to? DOM, BOM or CSSOM?
BOM, they are browser properties.
this tag forms the root in DOM tree structure
document
this console command highlights the element in the page
inspect(node)
what are corresponding DOM elements for , , and tags?
document.documentElement || document.head || document.body
In reference to DOM, childNodes is an array. True / False ?
False. It is a collection, not an array.
childNodes holds all nodes even comments, text, etc. True/False ?
True. Text and Comment are also nodes.
Predict the output:
document. documentElement.parentNode ||
document. documentElement.parentElement
document || null
document is the object of this Node class
HTMLDocument