Home >Web Front-end >HTML Tutorial >The function of HTML
HTML 5ba626b379994d53f7acf72a64f9b697 tag
Note: Internet Explorer 8 and earlier versions do not support the 5ba626b379994d53f7acf72a64f9b697 tag. (Recommended learning: html tutorial)
Definition and usage
5ba626b379994d53f7acf72a64f9b697 tag defines graphics, such as charts and other images. 5ba626b379994d53f7acf72a64f9b697 tags are just graphics containers, you have to use a script to draw the graphics.Differences between HTML 4.01 and HTML 5
The5ba626b379994d53f7acf72a64f9b697 tag is a new tag in HTML 5.Example
How to display a red rectangle through the canvas element:<!DOCTYPE HTML> <html> <body> <canvas id="myCanvas">your browser does not support the canvas tag </canvas> <script type="text/javascript"> var canvas=document.getElementById('myCanvas'); var ctx=canvas.getContext('2d'); ctx.fillStyle='#FF0000'; ctx.fillRect(0,0,80,100); </script> </body> </html>
The above is the detailed content of The function of HTML