Text in HTML Canvas
Canvas Text
Canvas allows us to draw text inside it. However, it provides several different methods to draw text inside of it.
Methods for drawing text in Canvas are:-
1. font
It defines the font properties for the text
2. fillText(text,x,y)
It draws "filled" text on the canvas
3. strokeText(text,x,y)
It draws text on the canvas without fill.