g
The group element contains all child elements as a group. Any styles (stroke and fill color) you specify in the starting group element will apply to all the child elements in the group.
Attribute | Description |
---|---|
transform
|
See Transformations. This attribute is applied to an element before any other coordinate or length values supplied for that element are processed. |
Example:
Copy
<g fill="blue">
<rect x="10" y="10" width="10" height="20" />
<rect x="40" y="40" width="20" height="10" />
</g>