style element | SVGStyleElement object
Enables style sheets to be embedded directly within SVG content.
![]() ![]() |
DOM Information
Inheritance Hierarchy
Members
The SVGStyleElement object has these types of members:
Events
The SVGStyleElement object has these events.
| Event | Description |
|---|---|
| onload |
Occurs when the browser has fully parsed the element and all of its descendants. |
Properties
The SVGStyleElement object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Gets or sets the destination medium for style information. | ||
| Read/write |
Gets or returns the advisory title of the SVGStyleElement. | |
|
Gets the style sheet language of the style element's contents. | ||
|
Gets or sets a value that specifies the language that is used in the contents and attribute values of an element. | ||
|
Gets or sets a value that indicates whether white space is preserved in character data. |
Standards information
- Scalable Vector Graphics: Styling, Section 6.18.1
Remarks
The style element enables you to embed style sheets directly within SVG content. The style element has the same attributes as the corresponding element in HTML.
See also

