Right-click an element to wrap it in a div, a template or a collection with template. Unwrap does the reverse: it moves the children up one level and removes the empty wrapper.
Editing
Wrap in… / Unwrap
Wrap elements in a div, template or collection – and unwrap.