type attribute | type property
Gets the style sheet language of the style element's contents.
![]() ![]() |
Syntax
| HTML |
|---|
<element type="p" ... > |
| JavaScript |
|---|
p = object.type |
Property values
Type: Number
A style sheet language.
Standards information
- Scalable Vector Graphics: Styling, Section 6.18.1
Remarks
The type property specifies the style sheet language of the style element's contents. The style sheet language is specified as a content type (for example, "text/css").
If you do not provide a type, the value of contentStyleType on the svg element is used, which defaults to "text/css". If a style element falls outside of the outermost svg element and you do not provide the type, the value of contentStyleType on the type element defaults to "text/css".
See also
Show:

