-->

HTML with CANVAS to draw rectangle.

<html>

<head>

    <head>
        <title>
            html with canvas tag.  We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <canvas id="size" width="500" height="600" style="border:4px solid;border-color:  purple;">
            <!--we always use canvas id for script-->
            <!--since we are going to draw rectangle, we use attribute width and height with style/css-->
            <!-- here the width and height defines canvas size-->
            <!--since it has no border so-->
            <!--we can use different color with the help of css-->
        
        
        </canvas>




    </body>


</html>

No comments:

Post a Comment