Level 101 Level 103
Level 102

[Quiz] HTML DOM


24 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
What does the browser create when a page is loaded?
When a web page is loaded, the browser creates a Document Object Model of the page.
In what way is HTML DOM constructed?
The HTML DOM model is constructed as a tree of Objects:
What can js do with its all its power?
JavaScript can change all the HTML elements in the page
dynamic HTML
What does js create?
What are we going to learn about js?
How to change the content of HTML elements
What is the DOM?
The DOM is a W3C (World Wide Web Consortium) standard.
Core DOM - standard model for all document types
The W3C DOM standard is separated into 3 different parts:
What is the HTML DOM?
The HTML DOM is a standard object model and programming interface for HTML.
What does HTML DOM define?
The HTML elements as objects
In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements.
In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements dinamically.
What is programming interface API?
In computer programming, an application programming interface (API) is a set of routines, protocols, and tools for building software applications.
What are HTML DOM methods for?
HTML DOM methods are actions you can perform (on HTML Elements)
What are HTML DOM properties for?
HTML DOM properties are values (of HTML Elements) that you can set or change
With which programming language can we access the HTML DOM?
The HTML DOM can be accessed with JavaScript (and with other programming languages).
What are elements in the HTML DOM defined?
In the DOM, all HTML elements are defined as objects.
What is the programming interface
The programming interface is the properties and methods of each object.
What is a property
A property is a value that you can get or set (like changing the content of an HTML element).
What is a method?
Methods are things that objects do. - ex. cat.purr()
In the example above, getElementById is a method, while innerHTML is a property.
The following example changes the content (the innerHTML) of the <p> element with id="demo":
What is the most common way to access an HTML element?
The most common way to access an HTML element is to use the id of the element.
What is the easiest way to get the content of an element?
The easiest way to get the content of an element is by using the innerHTML property.
When is innerHTML property useful?
The innerHTML property is useful for getting or replacing the content of HTML elements.
Which html element's content can we change with innerHTML?
The innerHTML property can be used to get or change any HTML element, including <html> and <body>.
What is a node list?
A node list is a collection of nodes