files/en-us/web/svg/reference/element/style/index.md
The <style> SVG element allows style sheets to be embedded directly within SVG content.
[!NOTE] SVG's
styleelement has the same attributes as the corresponding element in HTML (see HTML's {{HTMLElement("style")}} element).
{{svginfo}}
<media-type>; Default value: text/css; Animatable: no<media-query-list>; Default value: all; Animatable: no<string>; Default value: none; Animatable: noThis element implements the {{domxref("SVGStyleElement")}} interface.
html,
body,
svg {
height: 100%;
}
<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
<style>
circle {
fill: gold;
stroke: maroon;
stroke-width: 2px;
}
</style>
<circle cx="5" cy="5" r="4" />
</svg>
{{EmbedLiveSample('Example', 150, '100%')}}
{{Specifications}}
{{Compat}}