appendChild() = appends a node as the last child of a node
insertBefore() = inert an element uefore a targeted element
childNodes() = returns a collection of a node’s child nodes, as a NodeList object
Wrapping elements
wrap() = wraps each of the selected elements
wrapInner() = wraps the content of each selected element
append() vs appendTo()
// $(target).append(content);
$("h1").append("Hello World!");
// $(content).appendTo(target);
$("p").appendTo("h1");
$("<p>hello</p>").appendTo("h1");
// If the selected this way is inserted into a single location
// elsewhere in the DOM, it will be moved into the targer (not clone)
// and new set consisting of the inserted elmement is returned.
$("p").appendTo($(".class"));
resize() method
Use resize() to detects and determines what to do at a specific page breakpoint