JSFiddle - React, Tailwind, and code Playground
HTML
<canvas width="500" height="280" id="drawing" style="background: #00080F;" margin-left:200px;>
Opps ! Your browser does not support for this application
<br />
We are So Sorry!
</canvas>
JavaScript
var skatocanvas = document.getElementById('drawing') ;
var ctx = skatocanvas.getContext('2d');
// baris teks pertama
ctx.font = '50px Roboto' ;
ctx.lineWidth = 5 ;
ctx.strokeStyle = "orange";
ctx.strokeText("Just For Sample",70,120);
// baris teks ke dua
ctx.font = '30px Roboto' ;
ctx.lineWidth = 1 ;
ctx.strokeStyle = "white";
ctx.strokeText("Blog Trelo-Skato Canvas Demo",40,160) ;
// baris teks ke tiga
ctx.font = '30px Brush Script MT' ;
ctx.lineWidth = 4 ;
ctx.fillStyle = "white";
ctx.fillText("www.trelo-skato.blogspot.com",110,190) ;