I was learning about appendChild and have so far come up with this code:
appendChild
Do yourself and us a favor and use JQuery. Everything becomes much simpler.
$('div.SomeDiv').append($('').css('width','100%').append($('').append($('').append($('').html("Blah Text"))))); // Everything else you want to add here...