html <- div(a(), h1())
tagAppendChild(html, span())
tagAppendChild(html, .cssSelector = "a", span())
tagAppendChildren(html, span(), p())
tagAppendChildren(html, .cssSelector = "a", span(), p())
tagSetChildren(html, span(), p())
tagInsertChildren(html, after = 1, span(), p())
Run the code above in your browser using DataLab