The canvas element has no drawing abilities of its
own. All drawing must be done inside a JavaScript:
Example Program:
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas"
width="200" height="100"
style="border:1px solid #c3c3c3;">
Your browser does not support the canvas...
What is Canvas?
The
HTML5 canvas element uses JavaScript to draw graphics on a web page.
A
canvas is a rectangular area, and you control every pixel of it.
The
canvas element has several methods for drawing paths, boxes, circles,
characters, and adding images.
Create a Canvas Element
Add
a...
HTML5 provides a standard for playing audio.
Until now, there has never been a standard for playing audio on a
web page.
Today, most audio are played through a plugin (like flash).
However, not all browsers have the same plugins.
HTML5 specifies a standard way to include audio, with the audio
element.
The...
Video on the Web
Until now, there has never been a standard for showing video on a
web page.
Today, most videos are shown through a plugin (like flash).
However, not all browsers have the same plugins.
HTML5 specifies a standard way to include video, with the video
element.
Video Formats
Currently,...
The internet has changed a
lot since HTML 4.01 became a standard in 1999.
Today, some elements in
HTML 4.01 are obsolete, never used, or not used the way they were intended to.
These elements are deleted or re-written in HTML5.
To better handle today's
internet use, HTML5 also includes new elements...
Hey there! My name is Anto Navis, a professional Web Designer as well as Content Creator from Tirunelveli, Tamilnadu. I love to Code and create interesting things while playing with it.