# SVG
SVG tag is an inline element
## Positioning
- (0,0) - x = 0, y = 0
- starts at top left
- y increases vertically down
- can use negative values
- -x goes left
- -y goes up
## Circle
- attributes
- `r` radius
- `cx` x position
- `cy` y position
```xml
```
## Line
- attributes
- `x1` starting x position
- `y1` starting y position
- `x2` ending x position
- `y2` ending y position
```xml
```
## Rectangle
## Ellipse
## Polygon
## Polyline
## Path
## Text
- Content of tag is the text
## Transform
Is an attribute
- `transform = "translate(x,y)"`
- `transform = "scale(factor)"`
- `rotate = "rotate(degrees)"`
## Group
- ``
- can put multiple elements inside it.
- positioning and styling apply to children
## Styling
Can be done with attributes:
- `fill=red` or `fill=#ff0000` fill color
- `stroke=red` or `stroke=#ff0000` stroke color
- `stroke-width=4` width of stroke
Can also be done with CSS:
```css
circle {
fill:red;
stroke:blue;
stroke-width:3;
}
```