Створити тег
// <p>Привіт!</p>
var p1 = document.createElement('p')
p1.textContent = "Привіт!"
document.body.appendChild(p1)
var div1 = document.createElement('div')
div1.setAttribute('id', 'b1')
id1.appendChild(div1)
// Текст в контейнері svg
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg")
svg.width = 500
svg.height = 50
var text = document.createElementNS("http://www.w3.org/2000/svg", "text")
text.setAttribute('x', '0')
text.setAttribute('y', '50')
text.style.fontFamily = 'Times New Roman'
text.style.fontSize = '50'
text.textContent = 'Текст в контейнері'
svg.appendChild(text)
document.body.appendChild(svg)
// Зображення
var img = new Image();
img.src = "http://2075.com.ua/images/Reference_book.png";
document.body.appendChild(img);