For writer functions that need to generate multiple nodes, the createDocumentFragment method can be used.