per settare il codice HTML ad un contenitore (DIV, TD ecc..), usi innerHTML


document.Quellocheè.innerHTML="

Ciao</p>"