HTML with CANVAS to draw rectangle.



            html with canvas tag.  We use this tag for graphics on web/page.

        <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-->



No comments:

Post a Comment