Rectangle Element

30020075, 125
<svg width="450" height="450" >
<rect
x="75"
X
y="125"
Y
width="300"
Width
height="200"
Height
stroke="#fa3838" stroke-width="20" fill="none"
/>
</svg>

Rectangle

The <rect> element is a basic SVG shape that creates rectangles based on a position, width, and height.

Top left corner of the rectangle

Width

Height

Styling

Stroke Color

You can set any color value that is valid in CSS. This includes named colors, hex codes, the rgb function and more. Set it to none to hide.

Stroke Width

Set the thickness of the stroke. It can be set to any positive number.

Stroke Linecap

Set the shape to be used at the end of a line or open subpath.

Stroke Linejoin

Set the shape to be used at the corners of paths and basic shapes when they are stroked.

Fill Color

You can set any color value that is valid in CSS. This includes named colors, hex codes, the rgb function and more. Set it to none to hide.