draw a rectangle inside a rectangle using svg - HTML CSS SVG

HTML CSS examples for SVG:Rectangle

Description

draw a rectangle inside a rectangle using svg

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <h1>My first SVG</h1> 
  <svg width="700" height="200"> 
   <rect height="100" width="600" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect> 
   <rect height="50" width="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)"></rect> 
  </svg>  <!--from   w w w  .j  ava2  s.c o  m-->
 </body>
</html>

Related Tutorials