![]() |
VOOZH | about |
The SVG <g> element is a container used to group other SVG elements.
Transformations applied to the <g> element are also performed on its child elements, and its attributes are inherited by its children.
Syntax:
<g attributes="" > <elements> </g>
Attributes:
Example 1: Making green consecutive circles inheriting attributes from the <g> element.
Output:
Example 2: Making rectangles with the same inherited properties.
Output:
Browsers Supported: The following browsers are supported by this SVG element: