In a Dart barebones web-app I create HTML elements like this:
Element e = Element.div()..className = "Dog" ..id = 1;