Element Methods Flashcards

1
Q

getAttribute()

A

Returns the specified attribute value

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

getAttributeNode()

A

Returns the specified attribute node

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

getBoundingClientRect()

A

Returns the size of an element and its position relative to the viewport.

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

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
5
Q

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
6
Q

hasAttribute()

A

Returns true if the element has the specified attribute, otherwise it returns false

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

querySelector()

A

Returns the first element that is a descendant of the element on which it is invoked that matches the specified CSS selector

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

querySelectorAll()

A

Returns a NodeList containing all elements descended from the element on which it is invoked that matches the specified CSS selector

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

removeAttribute()

A

Removes the specified attribute

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

removeAttributeNode()

A

Removes the specified attribute node, and returns the removed node

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

setAttribute()

A

Sets or changes the specified attribute, to the specified value

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

setAttributeNode()

A

Sets or changes the specified attribute node

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