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
Q

Element.insertBefore()

A

Inserts a new child node before a specified, existing, child node.

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

Element.isContentEditable

A

Returns true if the content of an element is editable, otherwise false.

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

Element.isDefaultNamespace()

A

Returns true if the content of an element is editable, otherwise false.

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

Element.isEqualNode()

A

Checks if two elements are equal.

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

Element.isSameNode()

A

Checks if two elements are the same node.

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

Element.isSupported()

A

Returns true if a specified feature is supported on the element.

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

Element.lang

A

Sets or returns the language code for an element.

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

Element.lastChild

A

Returns the last child of an element.

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

Element.namespaceURI

A

Returns the namespace URI of an element.

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

Element.nextSibling

A

Returns the next node at the same node tree level.

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

Element.nodeName

A

Returns the name of an element.

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

Element.nodeType

A

Returns the node type of an element.

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

Element.nodeValue

A

Sets or returns the value of an element.

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

Element.normalize()

A

Joins adjacent text nodes and removes empty text nodes in an element.

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

Element.offsetHeight

A

Returns the height of an element.

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

Element.offsetWidth

A

Returns the width of an element.

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

Element.offsetLeft

A

Returns the horizontal offset position of an element.

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

Element.offsetParent

A

Returns the offset container of an element.

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

Element.offsetTop

A

Returns the vertical offset position of an element.

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

Element.ownerDocument

A

Returns the root element (document object) for an element.

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

Element.parentNode

A

Returns the parent node of an element.

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

Element.previousSibling

A

Returns the previous element at the same node tree level.

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

Element.querySelector()

A

Returns the first child element that matches a specified CSS selector(s) of an element.

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

Element.removeAttribute()

A

Removes a specified attribute from an element.

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

Element.removeAttributeNode()

A

Removes a specified attribute node, and returns the removed node.

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

Element.removeChild()

A

Removes a child node from an element.

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

Element.replaceChild()

A

Replaces a child node in an element.

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

Element.removeEventListener()

A

Removes an event handler that has been attached with the addEventListener() method.

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

Element.scrollHeight

A

Returns the entire height of an element.

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

Element.scrollLeft

A

Returns the distance between the left edge of an element and the view.

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

Element.scrollTop

A

Returns the distance between the top edge of an element and the view.

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

Element.scrollWidth

A

Returns the entire width of an element.

57
Q

Element.setAttribute()

A

Sets or changes the specified attribute, to the specified value.

58
Q

Element.setAttributeNode()

A

Sets or changes the specified attribute node, to the specified value.

59
Q

Element.setIdAttribute()

A

Sets or changes the attribute of the specified id, to the specified value.

60
Q

Element.setIdAttributeNode()

A

Sets or changes the attribute node of the specified id, to the specified value.

61
Q

Element.setUserData()

A

Associates an object to a key on an element.

62
Q

Element.style

A

Sets or returns the style attribute of an element.

63
Q

Element.tabIndex

A

Sets or returns the tab order of an element.

64
Q

Element.tagName

A

Returns the tag name of an element.

65
Q

Element.textContent

A

Sets or returns the textual content of a node and its descendants.

66
Q

Element.title

A

Sets or returns the title attribute of an element.

67
Q

Element.toString()

A

Converts an element to a string.

68
Q

Nodelist.item()

A

Returns the node at the specified index in a NodeList.

69
Q

Nodelist.length

A

Returns the number of nodes in a NodeList.

70
Q

Sets or returns the accesskey for an element.

A

Element.accessKey

71
Q

Attaches an event handler to the specified element.

A

Element.addEventListener()

72
Q

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

A

Element.appendChild()

73
Q

Returns a NamedNodeMap of an element’s attributes.

A

Element.attributes

74
Q

Returns a NodeList of child nodes for an element.

A

Element.childNodes

75
Q

Sets or returns the class attribute of an element.

A

Element.className

76
Q

Returns the viewable height of an element.

A

Element.clientHeight

77
Q

Returns the viewable width of an element.

A

Element.clientWidth

78
Q

Clones an element.

A

Element.cloneNode()

79
Q

Compares the document position of two elements.

A

Element.compareDocumentPosition()

80
Q

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

A

Element.contentEditable

81
Q

Sets or returns the text direction of an element.

A

Element.dir

82
Q

Returns the first child of an element.

A

Element.firstChild

83
Q

Returns the specified attribute value of an element node.

A

Element.getAttribute()

84
Q

Returns the specified attribute node.

A

Element.getAttributeNode()

85
Q

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

A

Element.getElementsByClassName()

86
Q

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

A

Element.getElementsByTagName()

87
Q

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

A

Element.getFeature()

88
Q

Returns the object associated to a key on an element.

A

Element.getUserData()

89
Q

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

A

Element.hasAttribute()

90
Q

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

A

Element.hasAttributes()

91
Q

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

A

Element.hasChildNodes()

92
Q

Sets or returns the id of an element.

A

Element.id

93
Q

Sets or returns the content of an element.

A

Element.innerHTML

94
Q

Inserts a new child node before a specified, existing, child node.

A

Element.insertBefore()

95
Q

Returns true if the content of an element is editable, otherwise false.

A

Element.isContentEditable

96
Q

Returns true if the content of an element is editable, otherwise false.

A

Element.isDefaultNamespace()

97
Q

Checks if two elements are equal.

A

Element.isEqualNode()

98
Q

Checks if two elements are the same node.

A

Element.isSameNode()

99
Q

Returns true if a specified feature is supported on the element.

A

Element.isSupported()

100
Q

Sets or returns the language code for an element.

A

Element.lang

101
Q

Returns the last child of an element.

A

Element.lastChild

102
Q

Returns the namespace URI of an element.

A

Element.namespaceURI

103
Q

Returns the next node at the same node tree level.

A

Element.nextSibling

104
Q

Returns the name of an element.

A

Element.nodeName

105
Q

Returns the node type of an element.

A

Element.nodeType

106
Q

Sets or returns the value of an element.

A

Element.nodeValue

107
Q

Joins adjacent text nodes and removes empty text nodes in an element.

A

Element.normalize()

108
Q

Returns the height of an element.

A

Element.offsetHeight

109
Q

Returns the width of an element.

A

Element.offsetWidth

110
Q

Returns the horizontal offset position of an element.

A

Element.offsetLeft

111
Q

Returns the offset container of an element.

A

Element.offsetParent

112
Q

Returns the vertical offset position of an element.

A

Element.offsetTop

113
Q

Returns the root element (document object) for an element.

A

Element.ownerDocument

114
Q

Returns the parent node of an element.

A

Element.parentNode

115
Q

Returns the previous element at the same node tree level.

A

Element.previousSibling

116
Q

Returns the first child element that matches a specified CSS selector(s) of an element.

A

Element.querySelector()

117
Q

Removes a specified attribute from an element.

A

Element.removeAttribute()

118
Q

Removes a specified attribute node, and returns the removed node.

A

Element.removeAttributeNode()

119
Q

Removes a child node from an element.

A

Element.removeChild()

120
Q

Replaces a child node in an element.

A

Element.replaceChild()

121
Q

Removes an event handler that has been attached with the addEventListener() method.

A

Element.removeEventListener()

122
Q

Returns the entire height of an element.

A

Element.scrollHeight

123
Q

Returns the distance between the left edge of an element and the view.

A

Element.scrollLeft

124
Q

Returns the distance between the top edge of an element and the view.

A

Element.scrollTop

125
Q

Returns the entire width of an element.

A

Element.scrollWidth

126
Q

Sets or changes the specified attribute, to the specified value.

A

Element.setAttribute()

127
Q

Sets or changes the specified attribute node, to the specified value.

A

Element.setAttributeNode()

128
Q

Sets or changes the attribute of the specified id, to the specified value.

A

Element.setIdAttribute()

129
Q

Sets or changes the attribute node of the specified id, to the specified value.

A

Element.setIdAttributeNode()

130
Q

Associates an object to a key on an element.

A

Element.setUserData()

131
Q

Sets or returns the style attribute of an element.

A

Element.style

132
Q

Sets or returns the tab order of an element.

A

Element.tabIndex

133
Q

Returns the tag name of an element.

A

Element.tagName

134
Q

Sets or returns the textual content of a node and its descendants.

A

Element.textContent

135
Q

Sets or returns the title attribute of an element.

A

Element.title

136
Q

Converts an element to a string.

A

Element.toString()

137
Q

Returns the node at the specified index in a NodeList.

A

Nodelist.item()

138
Q

Returns the number of nodes in a NodeList.

A

Nodelist.length