Inserting Text
Text can be added at any appropriate place in a document by creating and inserting a new Text node. Document.createTextNode takes a text string as an argument, and returns a new node (Text object) that can be inserted by calling methods such as Node.appendChild or Node.insertBefore on the desired node.