1/9
10 vocabulary flashcards covering fundamental DOM concepts and common JavaScript DOM methods and events.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Document Object Model (DOM)
A programming interface that represents an HTML or XML document as a tree of objects, enabling JavaScript to read and manipulate the page’s content, structure, and style.
Core DOM
The language-independent, foundational DOM specification that defines a standard model for all document types.
HTML DOM
The W3C standard object model that maps every HTML element, attribute, style, and event in a web page to JavaScript-accessible objects.
XML DOM
The standard object model for XML documents, allowing applications to access, traverse, and modify XML data via programming languages like JavaScript.
document.getElementById(id)
DOM method that returns the first element with the matching id attribute, often used to read or change a specific element.
document.getElementsByName(name)
DOM method that returns a live NodeList of all elements whose name attribute matches the given string.
document.getElementsByTagName(tag)
DOM method that returns a live HTMLCollection of all elements with the specified tag name.
innerHTML
Element property used to get or set the HTML markup contained inside an element, effectively altering its content.
setAttribute(attribute, value)
DOM method that adds a new attribute to an element or changes the value of an existing attribute.
click event
A mouse event fired when a user presses and releases a pointing-device button on an element; commonly used to trigger JavaScript functions.