The <switch> SVG element is used to evaluate attributes on its direct child elements in order and then renders the first child where these attributes evaluate to true. Other remaining children will not be rendered.
<switch attribute="" > <child 1> <child 2> <child 3> <child n> </switch>
- Global Attributes: some global attributes used like core attributes and styling attributes, etc.
Example: Getting System Language using <switch> element.
Supported Browsers: The following browsers are supported by this SVG element:
- Internet Explorer