[SalesForce] Dynamically create html components in lightning

Since HTML tags are first class citizens in lightning is there a way to instantiate them as components in lightning? Something like:

    $A.createComponent(
        "html:div",
        {
            "aura:id": "test1",
            "textContent": "test"
        },
        function(div){
            //Add the new button to the body array
            var container = cmp.find("container");
            if (container.isValid()) {
                var body = container.get("v.body");
                body.push(div);
                container.set("v.body", body);
            }
        }
    );

Best Answer

This worked for me:

$A.createComponent(
    "aura:html",
     { 
         tag: "div",
         HTMLAttributes:{"id": "Temp","class": "class name here"}
     },
     function(compo){
          var container = cmp.find("container");
          if (container.isValid()) {
              var body = container.get("v.body");
              body.push(compo);
              container.set("v.body", body);
          }
     }
);