HTML5 HandsOn
HTML5 HandsOn
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="favicon.png" type="image/png">
<title>Destiny</title>
<link href="mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>
//write your code here
<header>WELCOME TO MY PAGE</header>
</body>
</html>
---------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
---------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="favicon.png" type="image/png">
<title>Destiny</title>
<link href="mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<footer>
<p><a>Copyright @ TCS 2016 </a>></p>
</footer>
</body>
</html>
---------------------------------------------------------
---------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="favicon.png" type="image/png">
<title>Destiny</title>
<link href="mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>
//write your code here
<video width="320" height="200" controls autoplay>
<source src="video.mp4">
</video>
<video width="320" height="200" controls>
<source src="video.mp4" preload="none">
</video>
<video width="320" height="200" controls
poster="https://cdn12.picryl.com/photo/2016/12/31/lego-stones-plastic-education-
8b9a7d-1024.jpg">
<source src="video.mp4">
</video>
</body>
</html>
---------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="favicon.png" type="image/png">
<title>Destiny</title>
<link href="mystyle.css" rel="stylesheet" type="text/css">
<script>
function draw() {
var ctx = document.getElementById('my_canvas').getContext('2d');
ctx.fillStyle = "red";
ctx.fillRect(20, 20, 200, 100);
ctx.strokeRect(20, 20, 200, 100);
}
window.onload = draw;
</script>
</head>
<body>
<canvas id="my_canvas" width="600" height="400"></canvas>
</body>
</html>
---------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="favicon.png" type="image/png">
<title>Destiny</title>
<link href="mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>
//write your code here
<form>
<header>
<h1>Registration Form</h1>
</header>
<datalist id="country">
<option value="India">
<option value="United States">
<option value="United Kingdom">
<option value="Australia">
<option value="France">
</datalist><br>
<label>Phone number:</label>
<input type="tel" name="phone"/> <br>
<label>Email:</label> <input type="email" id="email" name="email"><br>
<label>website:</label><input type="url" id="website" name="website"><br>
</form>
<input type="submit" value="Submit">
</body>
</html>
---------------------------------------------------------