DOM Method Demonstrations

1. getElementById()

This text will change color.

2. querySelector()

This is a special paragraph.

3. createElement() & appendChild()

4. removeChild()

5. setAttribute()

Sun Image

6. replaceChild()

7. classList.add() & classList.remove()

This text will gain and lose a class style.

Back to Home