SVG/Element/rect
Aus SELFHTML-Wiki
Das rect-Element (engl. rectangle) definiert ein Rechteck.
- Syntax
- Start-Tag: notwendig
- End-Tag: ggf. notwendig
- Elternelemente
- Darf vorkommen in:
jedem Element, das fließenden Inhalt erlaubt. - erlaubte Inhalte
- animate, animateMotion, animateTransform, set (dann wird ein End-Tag nötig)
Name | Inhalt | Standardwert | Bedeutung |
---|---|---|---|
height | NUMBER | Pixelwert | Höhe |
systemLanguage | IANA | Sprachkürzel | |
transform | CDATA | ||
width | NUMBER | Pixelwert | Breite |
x | NUMBER | Pixelwert | horizontale Position der linken oberen Ecke |
y | NUMBER | Pixelwert | vertikale Position der linken oberen Ecke |
Attribut: Pflichtattribut
Attribut: optionales Attribut
Beispiel
<rect id="eins" width="200" height="100"/>
<rect id="rund" x="100" y="150" width="200" height="100" rx="20" ry="20" />
Siehe auch
Weblinks
- W3C: RectElement