Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

3. Write an HTML documents to print the following.

1. Animals
● Cow
● Cat
● Lion
2. Colors
● Red
● Green
● Blue

SOURCE CODE:
---------------------------------------------------------------------------------------

<html>
<head>
<title>print the following</title>
</head>
<body>
<ol type="1">
<li>Animals</li>
</ol>
<ul>
<li>Cow</li>
<li>Cat</li>
<li>Lion</li>
</ul>
<ol type="1" start="2">
<li>Colors</li>
</ol>
<ul>
<li>Red</li>
<li>Green></li>
<li>Blue</li>
</ul>
</body>
</html>
1. Display your family information with background and other
formatting.

SOURCE CODE:
-----------------------------------------------------------------------------------

<html>
<body>
<head>
<title> Family Information </title>
</head>
<body bgcolor="#E8E120" text="blue">
<h1>
<pre>
My name is Anshika.
My family information is-
Father name- Mr.Umesh Chandra Verma
Mother name- Mrs.Chandra Kala
Brother name-Anand
</pre>
</h1>
</body>
</html>
4. Create a table with the following table:

Community Male Female


OBC 35 40
SC/ST 23 12
General 12 10

SOURCE CODE:
-------------------------------------------------------------------------------------

<html>
<head>
<title>Table</title>
</head>
<border><table width="500"border="2">
<th> Community
<th>Male
<th>female
</th>
<tr>
<td>OBC</td><td>35</td><td>40</td>
</tr>
<tr>
<td>SC/ST</td><td>23</td><td>12</td>
</tr>
<tr>
<td>GEN</td><td>12</td><td>10</td>
</tr>
</body>
</html>
2. Design the webpage to display the following table with
hyperlinks the department name for every information inside the
table:

Sr. No Dept. Name Courses


UG PG

1 Computer Science Yes Yes

2 Math Yes Yes

3 Chemistry No Yes

4 Commerce Yes Yes

SOURCE CODE:
------------------------------------------------------------------------------------------------

<html>
<head>
<title> Table with Hyperlinks</title>
</head>
<body vlink="0000FF">
<table border="1" width="600">
<tr>
<td rowspan="2"> S. no. </td>
<td rowspan="2"> Department Names</td>
<td colspan="2"align="centre">Courses</td>
</tr>
<tr>
<td>align="centre">UG</td>
<td> align="centre">PG</td>
</tr>
<tr>
<td>1</td><td><a href="CS.html">Computer Science</a></td>
<td> Yes</td><td>yes</td>
</tr>
<tr>
<td>2</td><td><a href="Maths.html">Maths</a></td>
<td>Yes</td><td>Yes</td>
</tr>
<tr>
<td>3</td><td><a href="Chemistry.html">Chemistry</a></td>
<td>No</td><td>Yes</td>
</tr>
<tr>
<td>4</td><td><a href="Commerce.html">Commerce</a></td>
<td>Yes</td><td>Yes</td>
</tr>
</body>
</html>
OUTPUT:
---------------------------------------------------
OUTPUT:
---------------------------------------------------
OUTPUT:
---------------------------------------------------
OUTPUT:
---------------------------------------------------

You might also like