JavaScript Criar elemento com atributos
var element = document.createElement("span");
element.setAttribute("style", "color: red");
document.body.appendChild(element);
TC5550