title
The title attribute specifies a consultative title for an SVG element. When used on a style element, it acts as an identifier used to expose and select between alternate style sheets. You can use this attribute with the following SVG elements:
The title attribute specifies a consultative title for an SVG element. When used on a style element, it acts as an identifier used to expose and select between alternate style sheets. You can use this attribute with the following SVG elements:
- style
Example
<svg viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg">
<style title="Default Style">
circle {
fill: gold;
}
</style>
<circle cx="10" cy="10" r="5" />
</svg>
150
Usage notes
| Value |
string
|
|---|---|
| Default value | None |
| Animatable | No |
Specifications
Browser compatibility
See also
- style