Pdf&rendition 1
Pdf&rendition 1
<!DOCTYPE html>
<body>
<p>
</p>
</body>
</html>
Nested Lists
<!DOCTYPE html>
<body>
<ul>
<ol type="a">
<li>Idli
<ul>
<li>Rava Idli
<li>mini idli
</ul> Output:
<li>Dosai
<ul>
<li>Rava Dosai
<li>ghee Dosai
</ul>
<li>chapatti
</ol>
<li>lunch
<ol type="i">
<li>Meals
<ul>
<li>Ordinary
<li>Spl. Meals
</ul>
<li>Mini Meals
<ul>
<li>lemon rice
<li>sambar rice
</ul>
</ol>
</ul>
</body>
</html>
TABLES
<!DOCTYPE html>
<html>
<body>
<thead>
<tr>
<th>Fruit</th>
<th>Price</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Total</th> <th>$3.75</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Apple</td>
<td>$0.25</td>
</tr>
<tr>
<td>Orange</td>
<td>$0.50</td>
</tr>
<tr>
<td>Banana</td>
<td>$1.00</td>
</tr>
<tr>
<td>Pineapple</td>
<td>$2.00</td>
</tr>
TABLES
<!DOCTYPE html>
<html>
<body>
<table border = "10">
<tbody>
<tr>
</tr>
<tr>
<th rowspan=2>Paddy</th>
<td>Ponni</td>
<td>Rs. 150</td>
</tr>
<tr>
<td>Sorna</td>
<td>Rs. 90</td>
</tr>
<tr>
<th rowspan=3>Millet</th>
<td>Co-1</td> Outpiut:
<td>Rs. 80</td>
</tr>
<tr>
<td>Co-2</td>
<td>Rs. 110</td>
</tr>
<tr>
<td>ADT-95</td>
<td>Rs. 90</td>
</tr>
</tbody>
</table>
</body>
</html>
INTERNAL LINKING
<!DOCTYPE html>
<html>
<body>
<h2 align="center">
</h2>
<pre>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre>
<ul>
<li> Watching TV
</ul>
</body>
</html>
EXTERNAL LINKING
<!DOCTYPE html>
<html>
<body>
<ul>
send e-mail</a></li>
</ul>
</body>
</html>
FORM
<form method="get" action = "http://www.xyz.com/validate.php">
User Name:
<p>
Password :
</p> <p>
</form>
FORM
<!DOCTYPE html>
<body>
<p>Text Color:
</p>
<p>Date of Joining:
<input type = "date" required"/>(yyyy-mm-dd)
</p>
</p>
<p>Email:
</p>
</p>
<p>Font Size:
</p>
<p>Your Age:
</p>
</p>
</p>
<p>URL address:
</p>
<p>Week:
<input type = "week" />(yyyy-Wnn, such as 2012-W01)
</p>
<p>
DATALIST
<!DOCTYPE html>
<body>
<p>Name:
</p>
<p>Email:
</p>
<p>Educational Qualification:
<datalist id = "qualification"/>
</datalist>
</p>
<p>
</form>
</body>
</html>
<head>
<script>
function dragStartHandler(event) {
event.dataTransfer.setData("Text",event.target.id);
function dragOverHandler(event)
event.preventDefault();
function dropHandler(event)
event.preventDefault();
var data=event.dataTransfer.getData("Text");
event.target.appendChild(document.getElementById(data));
</script>
<body>
<ol ondragstart="dragStartHandler(event)">
</ol>
<p>Drop your favorite fruits below:</p><hr/>
<ol ondragover="dragOverHandler(event)"
ondrop="dropHandler(event)">
<li value="fruit-grape">Grapes</li>
</ol></BODY></HTML>
ADDING AUDIO
<!DOCTYPE html>
<body>
<audio controls>
</audio>
</body>
</html>
ADDING VIDEO
<!DOCTYPE html>
<html>
<body>
</video>
</body>
</html>
CREATING CANVA
<html>
<body>
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FF0000";
/*The fillStyle property can be a CSS color, a gradient, or a pattern The default
ctx.fillRect(0,0,150,75);
</script>
</body>
</html>
PATH IN CANVA
<!DOCTYPE html>
<html>
<body>
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.moveTo(0,0);
ctx.lineTo(200,100);
ctx.stroke();
</script>
</body>
</html>
<html>
<body>
<p>Image to use:</p>
<img id="scream"
src="fish.jpeg"
align="left" />
<p>Canvas:</p>
<canvas id="myCanvas"
width="150"
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var im=document.getElementById("scream");
ctx.drawImage(im,10,10);
</script>
</body></HTML>