--- title: removeEmptyContainers svgo: pluginId: removeEmptyContainers defaultPlugin: true --- Remove container elements in the document that have no children or meaningful attributes, excluding the `` element which is ignored. A container, as defined in the [SVG specifications](https://www.w3.org/TR/SVG11/intro.html#TermContainerElement), is an SVG element that can have graphical child elements. Container elements include: - [``](https://developer.mozilla.org/docs/Web/SVG/Element/a) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/defs) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/glyph) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/g) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/marker) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/mask) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/missing-glyph) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/pattern) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/svg) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/switch) - [``](https://developer.mozilla.org/docs/Web/SVG/Element/symbol)