JSFiddle - React, Tailwind, and code Playground

HTML

<canvas width="500px" height="500px"></canvas>

<!-- пример сайта know-online.com -->

JavaScript

var canvas = document.querySelector('canvas');
var ctx = canvas.getContext("2d");
 
ctx.font      = "bold 20px Verdana";
ctx.fillStyle = "green";
ctx.fillText("Canvas",10,30);