Horje
How to design HTML SVG Rounded Rectangle

Create HTML SVG Rounded Rectangle


Example of HTML SVG Rounded Rectangle

Follow the Example
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:

Example of HTML SVG Rounded Rectangle

Full Example of HTML SVG Rounded Rectangle

Follow the Example
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<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" />
Sorry, your browser does not support inline SVG.
</svg>

</body>
</html>

Output should be:

Full Example of HTML SVG Rounded Rectangle





Related Articles
What is HTML SVG Graphics HTML SVG Graphics
How to create HTML <svg> Circle Element HTML SVG Graphics
How to create HTML SVG Rectangle HTML SVG Graphics
How to design HTML SVG Rounded Rectangle HTML SVG Graphics
How to design HTML SVG Star HTML SVG Graphics
How to design HTML SVG Logo HTML SVG Graphics
What are the Differences Between SVG and Canvas HTML SVG Graphics

Single Articles
Example of HTML SVG Rounded RectangleHTML SVG Graphics
Full Example of HTML SVG Rounded RectangleHTML SVG Graphics

Read Full:
HTML SVG Graphics
Category:
Web Tutorial
Sub Category:
HTML SVG Graphics
Uploaded by:
Admin
Views:
83


Reffered: https://www.w3schools.com/html/html5_svg.asp