4 <canvas id=
"canvas" width=
"300px" height=
"300px" style=
"border:1px solid #c3c3c3;"></canvas>
6 <script type=
"text/javascript">
7 var ctx
= document
.getElementById('canvas').getContext("2d");
8 ctx
.font
= '15px Arial';
10 ctx
.fillText('foobar', 10, 20);
11 ctx
.fillText('foorab', 10, 40);
12 ctx
.fillText('oofbar', 10, 60);
13 ctx
.fillText('raboof', 10, 80);