Some lists contain text ; other directories contain images; other lists contain custom web items. Regardless of the content of a list, one thing is for sure: Web pages are full of lists.
appendChild () appends a node at the end of a parent node. appendChild () is commonly used to add items to an HTML list. A node refers to any element of the HTML Document Object Model (DOM).
The syntax of appendChild () looks like this:
"parent" refers to the element to which you want to add a child. "Child" is the item you want to add at the end of the parent.