Dom creation 1 Flashcards

1
Q

What are two ways to target elements on the DOM?

A

getElmenentById

querySelector

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

What is another way to add a text node to an element other than using textContent.

A

innerText

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

How do you create a HTML element using vanilla Javascript?

A

document.createElement(“element”)

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