document.createElement("h1");
document.createTextNode("Soy el texo de un elemento");
document.getElementById("contenedor");
document.getElementsByTagName("p"); // como devuelve un arreglo, use corchetes para elemento individual
elemento.appendChild(nodoHijo);
elemento.setAttribute("nombreAtributo","valorAtributo");
document.getElementById("idElemento").id="nuevoId";
document.getElementById("idElemento").href="nuevoHref";
elemento.getAttribute("nombreAtributo");
elemento.removeAttribute("nombreAtributo");
elemento.insertBefore(elementoPorInsertar,elementoReferencia);
padre.replaceChild(elemento,referencia);
padre.removeChild(referencia);
padre=elemento.parentNode;