Elements Flashcards

1
Q

Element.accessKey

A

Sets or returns the accesskey for an element.

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

Element.addEventListener()

A

Attaches an event handler to the specified element.

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

Element.appendChild()

A

Adds a new child node, to an element, as the last child node.

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

Element.attributes

A

Returns a NamedNodeMap of an element’s attributes.

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

Element.childNodes

A

Returns a NodeList of child nodes for an element.

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

Element.className

A

Sets or returns the class attribute of an element.

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

Element.clientHeight

A

Returns the viewable height of an element.

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

Element.clientWidth

A

Returns the viewable width of an element.

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

Element.cloneNode()

A

Clones an element.

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

Element.compareDocumentPosition()

A

Compares the document position of two elements.

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

Element.contentEditable

A

Sets or returns whether the content of an element is editable or not.

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

Element.dir

A

Sets or returns the text direction of an element.

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

Element.firstChild

A

Returns the first child of an element.

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

Element.getAttribute()

A

Returns the specified attribute value of an element node.

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

Element.getAttributeNode()

A

Returns the specified attribute node.

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

Element.getElementsByClassName()

A

Returns a collection of all child elements with the specified class name.

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

Element.getElementsByTagName()

A

Returns a collection of all child elements with the specified tagname.

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

Element.getFeature()

A

Returns an object which implements the APIs of a specified feature.

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

Element.getUserData()

A

Returns the object associated to a key on an element.

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

Element.hasAttribute()

A

Returns true if an element has the specified attribute, otherwise false.

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

Element.hasAttributes()

A

Returns true if an element has any attributes, otherwise false.

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

Element.hasChildNodes()

A

Returns true if an element has any child nodes, otherwise false.

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

Element.id

A

Sets or returns the id of an element.

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

Element.innerHTML

A

Sets or returns the content of an element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Element.insertBefore()
Inserts a new child node before a specified, existing, child node.
26
Element.isContentEditable
Returns true if the content of an element is editable, otherwise false.
27
Element.isDefaultNamespace()
Returns true if the content of an element is editable, otherwise false.
28
Element.isEqualNode()
Checks if two elements are equal.
29
Element.isSameNode()
Checks if two elements are the same node.
30
Element.isSupported()
Returns true if a specified feature is supported on the element.
31
Element.lang
Sets or returns the language code for an element.
32
Element.lastChild
Returns the last child of an element.
33
Element.namespaceURI
Returns the namespace URI of an element.
34
Element.nextSibling
Returns the next node at the same node tree level.
35
Element.nodeName
Returns the name of an element.
36
Element.nodeType
Returns the node type of an element.
37
Element.nodeValue
Sets or returns the value of an element.
38
Element.normalize()
Joins adjacent text nodes and removes empty text nodes in an element.
39
Element.offsetHeight
Returns the height of an element.
40
Element.offsetWidth
Returns the width of an element.
41
Element.offsetLeft
Returns the horizontal offset position of an element.
42
Element.offsetParent
Returns the offset container of an element.
43
Element.offsetTop
Returns the vertical offset position of an element.
44
Element.ownerDocument
Returns the root element (document object) for an element.
45
Element.parentNode
Returns the parent node of an element.
46
Element.previousSibling
Returns the previous element at the same node tree level.
47
Element.querySelector()
Returns the first child element that matches a specified CSS selector(s) of an element.
48
Element.removeAttribute()
Removes a specified attribute from an element.
49
Element.removeAttributeNode()
Removes a specified attribute node, and returns the removed node.
50
Element.removeChild()
Removes a child node from an element.
51
Element.replaceChild()
Replaces a child node in an element.
52
Element.removeEventListener()
Removes an event handler that has been attached with the addEventListener() method.
53
Element.scrollHeight
Returns the entire height of an element.
54
Element.scrollLeft
Returns the distance between the left edge of an element and the view.
55
Element.scrollTop
Returns the distance between the top edge of an element and the view.
56
Element.scrollWidth
Returns the entire width of an element.
57
Element.setAttribute()
Sets or changes the specified attribute, to the specified value.
58
Element.setAttributeNode()
Sets or changes the specified attribute node, to the specified value.
59
Element.setIdAttribute()
Sets or changes the attribute of the specified id, to the specified value.
60
Element.setIdAttributeNode()
Sets or changes the attribute node of the specified id, to the specified value.
61
Element.setUserData()
Associates an object to a key on an element.
62
Element.style
Sets or returns the style attribute of an element.
63
Element.tabIndex
Sets or returns the tab order of an element.
64
Element.tagName
Returns the tag name of an element.
65
Element.textContent
Sets or returns the textual content of a node and its descendants.
66
Element.title
Sets or returns the title attribute of an element.
67
Element.toString()
Converts an element to a string.
68
Nodelist.item()
Returns the node at the specified index in a NodeList.
69
Nodelist.length
Returns the number of nodes in a NodeList.
70
Sets or returns the accesskey for an element.
Element.accessKey
71
Attaches an event handler to the specified element.
Element.addEventListener()
72
Adds a new child node, to an element, as the last child node.
Element.appendChild()
73
Returns a NamedNodeMap of an element's attributes.
Element.attributes
74
Returns a NodeList of child nodes for an element.
Element.childNodes
75
Sets or returns the class attribute of an element.
Element.className
76
Returns the viewable height of an element.
Element.clientHeight
77
Returns the viewable width of an element.
Element.clientWidth
78
Clones an element.
Element.cloneNode()
79
Compares the document position of two elements.
Element.compareDocumentPosition()
80
Sets or returns whether the content of an element is editable or not.
Element.contentEditable
81
Sets or returns the text direction of an element.
Element.dir
82
Returns the first child of an element.
Element.firstChild
83
Returns the specified attribute value of an element node.
Element.getAttribute()
84
Returns the specified attribute node.
Element.getAttributeNode()
85
Returns a collection of all child elements with the specified class name.
Element.getElementsByClassName()
86
Returns a collection of all child elements with the specified tagname.
Element.getElementsByTagName()
87
Returns an object which implements the APIs of a specified feature.
Element.getFeature()
88
Returns the object associated to a key on an element.
Element.getUserData()
89
Returns true if an element has the specified attribute, otherwise false.
Element.hasAttribute()
90
Returns true if an element has any attributes, otherwise false.
Element.hasAttributes()
91
Returns true if an element has any child nodes, otherwise false.
Element.hasChildNodes()
92
Sets or returns the id of an element.
Element.id
93
Sets or returns the content of an element.
Element.innerHTML
94
Inserts a new child node before a specified, existing, child node.
Element.insertBefore()
95
Returns true if the content of an element is editable, otherwise false.
Element.isContentEditable
96
Returns true if the content of an element is editable, otherwise false.
Element.isDefaultNamespace()
97
Checks if two elements are equal.
Element.isEqualNode()
98
Checks if two elements are the same node.
Element.isSameNode()
99
Returns true if a specified feature is supported on the element.
Element.isSupported()
100
Sets or returns the language code for an element.
Element.lang
101
Returns the last child of an element.
Element.lastChild
102
Returns the namespace URI of an element.
Element.namespaceURI
103
Returns the next node at the same node tree level.
Element.nextSibling
104
Returns the name of an element.
Element.nodeName
105
Returns the node type of an element.
Element.nodeType
106
Sets or returns the value of an element.
Element.nodeValue
107
Joins adjacent text nodes and removes empty text nodes in an element.
Element.normalize()
108
Returns the height of an element.
Element.offsetHeight
109
Returns the width of an element.
Element.offsetWidth
110
Returns the horizontal offset position of an element.
Element.offsetLeft
111
Returns the offset container of an element.
Element.offsetParent
112
Returns the vertical offset position of an element.
Element.offsetTop
113
Returns the root element (document object) for an element.
Element.ownerDocument
114
Returns the parent node of an element.
Element.parentNode
115
Returns the previous element at the same node tree level.
Element.previousSibling
116
Returns the first child element that matches a specified CSS selector(s) of an element.
Element.querySelector()
117
Removes a specified attribute from an element.
Element.removeAttribute()
118
Removes a specified attribute node, and returns the removed node.
Element.removeAttributeNode()
119
Removes a child node from an element.
Element.removeChild()
120
Replaces a child node in an element.
Element.replaceChild()
121
Removes an event handler that has been attached with the addEventListener() method.
Element.removeEventListener()
122
Returns the entire height of an element.
Element.scrollHeight
123
Returns the distance between the left edge of an element and the view.
Element.scrollLeft
124
Returns the distance between the top edge of an element and the view.
Element.scrollTop
125
Returns the entire width of an element.
Element.scrollWidth
126
Sets or changes the specified attribute, to the specified value.
Element.setAttribute()
127
Sets or changes the specified attribute node, to the specified value.
Element.setAttributeNode()
128
Sets or changes the attribute of the specified id, to the specified value.
Element.setIdAttribute()
129
Sets or changes the attribute node of the specified id, to the specified value.
Element.setIdAttributeNode()
130
Associates an object to a key on an element.
Element.setUserData()
131
Sets or returns the style attribute of an element.
Element.style
132
Sets or returns the tab order of an element.
Element.tabIndex
133
Returns the tag name of an element.
Element.tagName
134
Sets or returns the textual content of a node and its descendants.
Element.textContent
135
Sets or returns the title attribute of an element.
Element.title
136
Converts an element to a string.
Element.toString()
137
Returns the node at the specified index in a NodeList.
Nodelist.item()
138
Returns the number of nodes in a NodeList.
Nodelist.length