SVG <rect>


  Translation results:

SVG is a language that uses XML to describe two-dimensional graphics and drawing programs.

SVG <rect>syntax

SVG has some predefined shape elements that can be used and manipulated by developers:

Rectangle<rect>, circle<circle>, ellipse<ellipse>, line<line> ;, polyline<polyline>, polygon<polygon>, path<path>

SVG <rect>example

<!DOCTYPE html>
<html>
<body>

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" />
</svg>
​
</body>
</html>

Run Instance»

Click "Run Instance" " button to view online examples

Home

Videos

Q&A