Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 9: Understanding the Document Object Model (DOM) with JavaScript!

Instruction

Manipulating the DOM Tree

DOM's Document Interface

The DOM's Document interface provides several functions for creating new elements, including their attributes and content, and joining them together or adding them into an existing DOM.

Key Functions:

  • createElement(): Creates a new element.
  • createAttribute(): Creates a new attribute that can be assigned to this new or an already existing ...