Referenz:SVG/Elemente/style
Aus SELFHTML-Wiki
< Referenz:SVG | Elemente
Hauptartikel: SVG/SVG_und_CSS#Einbindung in die SVG-Grafik
Name | style ![]() ![]() |
---|---|
Bedeutung | style-Element können Sie Präsentationsattribute zur Gestaltung notieren |
Syntax | Start-Tag: notwendig End-Tag: notwendig <style>…</style> |
Elternelemente | Darf vorkommen in: jedem Element, das fließenden Inhalt erlaubt. |
Kindelemente | alle Elemente |
Browsersupport | |
Spezifikation | ![]() |
Beachten Sie |
Da in CSS-Angaben anders als in XML-Dokumenten ein > vorkommen darf, müssen die Stil-Definitionen in CDATA gekapselt werden. |
Name | Inhalt | Standardwert | Bedeutung |
---|---|---|---|
Kernattribute | |||
id | ID | identifiziert ein einziges Element innerhalb eines Dokuments | |
xml:base | CDATA | Basis-URL | |
xml:lang | Sprachkürzel | legt eine den IANA-Sprachdefinitionen folgende Sprache des Elementinhalts fest [RFC1766] | |
xml:space | default, preserve | Verhalten gegenüber whitespace)
| |
Präsentationsattribute | |||
alignment-baseline | |||
baseline-shift | |||
clip | |||
clip-path | |||
clip-rule | |||
color | |||
cursor | |||
cx | (SVG2) | ||
cy | (SVG2) | ||
direction | |||
display | |||
dominant-baseline | |||
filter | |||
flood-color | |||
flood-opacity | |||
font | |||
font-family | |||
font-size | |||
font-size-adjust | |||
font-stretch | |||
font-style | |||
font-variant | |||
font-weight | |||
glyph-orientation-horizontal | |||
glyph-orientation-vertical | |||
height | (SVG2) | ||
isolation | |||
letter-spacing | |||
lighting-color | |||
mask | |||
opacity | |||
overflow | |||
pointer-events | |||
r | (SVG2) | ||
rx | (SVG2) | ||
ry | (SVG2) | ||
text-anchor | |||
text-decoration | |||
unicode-bidi | |||
visibility | |||
word-spacing | |||
writing-mode | |||
width | (SVG2) | ||
x | (SVG2) | ||
y | (SVG2)
| ||
type | |||
media | CDATA | ||
title | CDATA |
Attribut: Pflichtattribut
Attribut: optionales Attribut