HTML5 > Structures

SVG Graphics in HTML5

How to define graphics for the webpage in HTML5?

SVG stands for Scalable Vector Graphics, by using <svg> tag we can define the graphics for the web.

    <h2>HTML5 SVG Rectangle - Scalable Vector Graphics</h2>
    <svg id="svgelem" height="200" xmlns="">
        <rect id="redrect" width="300" height="100" fill="red" />


The above output shows the SVG rectangle, we can make the different types of shapes like (star, Square, cone, circle, etc.).

 Views: 4701 | Post Order: 79

Write for us

Hosting Recommendations