Sie sind auf Seite 1von 9

LAB ASSIGNMENT-7

CHAPTER 7: WEB APPLICATIONS


1. Write HTML code to display the following web pages:

a)
b)
CODE:

<html>
<body>
<table cellspacing=10 cellpadding=10 border=1>
<tr>
<th colspan=2><font face="arial" color="red">Fresh Fruits</font></th>
</tr>
<tr>
<td lang="hi"><font size=5>Fresh Fuits help us stay healthy and fit.<br>
फल सेहत के ललए लाभदायक है | </font></td>
<td><img
src="http://www.5280gourmet.com/media/catalog/product/cache/2/image
/500x600/c7b1013587e3950a5d7e32f0dd8b8398/f/i/file_42_66.jpg"
width=200 height=200></td>
</tr>
</table>
</body>
</html>
RUN VIEW:

d)
CODE:
<html>
<body>
<ol start=1>
<li>India
<ol start=1 type=a>
<li>Haryana
<ul type=square>
<li>Gurgaon <li>Faridabad
</ul>
<li>J&K
<ul type=square>
<li>Jammu <li>Srinagar
</ul>
</ol>
</ol>
</body>
</html

RUN VIEW:
2. Write the HTML code to generate the following result:
a)

CODE:

<html>

<body>

<p>ONE 1 2 3</p>

</body>

</html>

RUN VIEW:

b)

CODE:

<html>
<body>

<p>TWO<br>

<ol start=2 type=i>

<li>ONE <li>TWO <li>THREE

</ol></p>

</body>

</html>

RUN VIEW:

c)
CODE:

<html>

<body>

<p>Things we learned in kindergarten:

<ol start=1>

<li>share <li>play fair <li>don't hit people <li>put things back where we
found them <li>say sorry when we hurt somebody
</ol>

</p>

</body>

</html>

RUN VIEW:

d)
CODE:

<html>

<body>

<ol start=1>

<li>Seek expert advice abount the area

<ul type=disc color="red">

<li>Get the best maps. On the map select

<ul type=disc color="blue">

<li>landmarks <li>mountains <li>lakers

</ul>

<li>Get a good compass and


<ul type=disc color="blue">

<li>check slope ofland <li>check direction of flowing streams

</ul>

</ul>

<li>If there is snow on the ground,stay close to:

<ul type=disc>

<li>roads <li>trails and <li>waterways

</ul>

</ol>

</body>

</html>

RUN VIEW:

3. Give the output for the following:


a) <html>
<body>
<h1>The following is a list of a few chemicals:</h1>
<ul type="disc">
<li>Sodium <li>Sulphur <li>Magnesium
</ul>
</body>
</html>
OUTPUT:

b) <html>
<head>

<title>SCHEDULE</title>

</head>

<body>

<table border=3>

<caption>Volunteer Schedule</caption>

<tr bgcolor="#aaffcc">

<th>9A.M.</th> <th>12P.M.</th> <th>2P.M.</th>

</tr>

<tr>

<td>Anmol</td> <td>Abhinav</td> <td>Anika</td>

</tr>

<tr>

<td>Riti</td> <td>Riya</td> <td>Sara</td>


</tr>

<tr>

<td>Gul</td> <td>Reyana</td> <td>Swayam</td>

</tr>

</table>

</body>

</html>

OUTPUT: