This is the answer to the question which I asked above. You will get the input area on canvas area with this code at the 100px from both top and left, if you want to change the position of the text area you change the value. Similarly you can append any HTML element in the canvas you want. Enter the element name in createElement area in script you will be able to create the HTML element.
Thank You..
!-- HTML CONTENT-->
<body>
<canvas id="canvas" style="background-color:rgb(171, 171, 250)"></canvas>
<!---->
<!--JavaScript CONTENT-->
<script>
//Canvas area on the screen
var res = window.devicePixelRatio || 1,
scale = 1 / res;
var canvas = document.querySelector("#canvas");
var ctx = canvas.getContext('2d');
canvas.height = window.innerHeight * res;
canvas.width = window.innerWidth * res;
canvas.style.height = window.innerHeight + 'px';
canvas.style.width = window.innerWidth + 'px';
ctx.scale(res, res);
//adding input tag on canvas
function addInput()
{
var input = document.createElement('input');
input.type = 'text';
input.style.position = 'absolute';
input.style.left = '100px'; //x-axis location of textarea
input.style.top = '100px'; //y-axis location of textarea
input.style.background = 'white';
input.style.width = '75px';
input.style.fontWeight = 'bolder';
document.body.appendChild(input);
input.focus();
}
addInput();
</script>
<!--JavaScript End Here-->
</body>
bodyelement, not to a canvas element.