var myNewElement = document.createElement('div'); myNewElement.innerHTML = ['<p>Текст1.</p>', '<p>Текст2.</p>'].join('');