Element.addChild

Element addChild(string tagName, string childInfo = null, string childInfo2 = null)

Family of convenience functions to quickly add a tag with some text or other relevant info (for example, it's a src for an element instead of inner text). They forward to Element.make then calls [appendChild].

div.addChild("span", "hello there");
div.addChild("div", Html("<p>children of the div</p>"));

Element addChild(Element e)

ditto

Element addChild(string tagName, Element firstChild, string info2 = null)

ditto

Element addChild(string tagName, in Html innerHtml, string info2 = null)

ditto