DOM Flashcards

1
Q

What does DOM stand for?

A

Document Object Model

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

What is the syntax for selecting a tag?

A

(Dane informed us that this is called an octothorpe lol)

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

What type of variable do the selectors need to be?

A

A STRING

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

Element Visibility

A

Elements aren’t visible until they’re appended to something already within the document body

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

Steps to appending

A
  1. Select an element already on the page
  2. Create a new “li” element
  3. Add content to the “li” element
  4. Add the “li” element to the element we selected from the page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly