O'Reilly logo
  • Ivan Petrov thinks this is interesting:

        var divElem = document.createElement("div");
        divElem.classList.add("dcell");
        
        var imgElem = document.createElement("img");
        imgElem.src = "lily.png";
        
        divElem.appendChild(imgElem);

From

Cover of Pro jQuery

Note

creating html elements using the DOM api