Grouping

You can use <g> to group elements.

All of <g>'s attributes are inherited to its children.

SVG elements

<g>

Groups elements.

| LIVE PREVIEW

References