Imagine the DOM (HTML page) as a tree right. The HTML elements are the nodes of this tree.
The append()
adds a new node to the child
of the node you called it on.
Example:$("#mydiv").append("<p>Hello there</p>")
creates a child node <p> to <div>
The after()
adds a new node as a sibling or at the same level or child to the parent of the node you called it on.