<canvas id="myCanvas" width="300" height="200" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillText("textAlign=start",150,60);
ctx.fillText("textAlign=end",150,80);
ctx.fillText("textAlign=left",150,100);
ctx.fillText("textAlign=center",150,120);
ctx.fillText("textAlign=right",150,140);