add border to image html canvas api code example Example: html5 canvas <canvas id="" width="" height=""></canvas> <script> </script>