Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
</head>
<body>
<canvas id="myCanvas" width="400" height="200"></canvas>
<script>
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.font = '30pt Calibri';
context.fillStyle = 'orange';
context.fillText('Пример Canvas!', 50, 100);
</script>
</body>
</html>