Create a Rectangle with HTML5 SVG - HTML CSS SVG

HTML CSS examples for SVG:Rectangle

Description

Create a Rectangle with HTML5 SVG

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <meta charset="UTF-8"> 
  <title>Create a Rectangle with HTML5 SVG</title> 
  <style type="text/css">
    svg {<!-- www .j  a  v  a  2s . co m-->
        border: 1px solid black;
    }
</style> 
 </head> 
 <body> 
  <svg width="300" height="200"> 
   <rect x="50" y="50" width="200" height="100" style="fill:orange; stroke:black; stroke-width:3;" /> 
  </svg>   
 </body>
</html>

Related Tutorials