Horje

How to Draw a square with rounded corners HTML <svg> Tag

The svg element.

index.html
Example: HTML
 <svg width="400" height="180">
  <rect x="50" y="20" rx="20" ry="20" width="150" height="150" style="fill:red;stroke:black;stroke-width:5;opacity:0.5" />
</svg> 

Output should be:

How to Draw a square with rounded corners HTML <svg> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin