g

Summary

Overview Table

The g element (<g>) groups two or more graphics elements or other g elements together to provide document structure. Groups containing the desc and title elements, provide additional semantic information and increase accessibility. When defined inside of a defs element and named using the id attribute, groups can be reused.

Examples

View live exampleIn the following code example, the g element is used to group two elements together. They are then rotated together.