Dbms & HTML Practical 2023
Dbms & HTML Practical 2023
SESSION : 2022-23
D.B.M.S.
INDEX
S. PROGRAMS P.
NO. NO.
1 Using the following database: 1-9
College(cname, city, address, phone, afdate)
Staff (sid, sname, saddress, contacts)
StaffJoin(sid,cname,dept,DOJ,post,salary)
Teaching(sid, class, papered, fsession, tsession)
Subjects (paperid, subject, paperno, papername)
Write SQL statements for the following:
A. Create the above tables with the given specifications and constraints.
B. Insertabout10rowsasareappropriatetosolvethefollowingqueries.
C. List the name of the teachers teaching computers subject.
D. List the names and cities of all staff working in your college.
E. List the names and cities of all staff working in your college who earn more than 15,000
ASSIGNMENT -01
Object :- Using the following database:
College (cname, city, address, phone, afdate)
StaffJoin(sid,cname,dept,DOJ,post,salary)
A. Create the above tables with the given specifications and constraints.
B. Insert about 10 rows as are appropriate to solve the following queries.
C. List the name of the teachers teaching computers subject.
D. List the names and cities of all staff working in your college.
E. List the names and cities of all staff working in your college who earn more than 15,000
A. Create the above tables with the given specifications and constraints.
desc college;
Results:-
create table staff(id int, name varchar(20), address varchar(25), contact number);
desc staff;
Results:-
create table staffjoins(ID int, NAME varchar(20), DEPT varchar(25), DOJ date, POST varchar(30),
SALARY number);
desc staffjoins;
Results:-
(sid int, class varchar(20), paperid int, fsession date, tsession date);
desc teachings;
Results:-
(paperid int primary key, subject varchar(20), paperno int, papername varchar(20));
desc subjects;
Results:-
Results:-
b2)
B2 ) Query to insert data staffs:
Results:-
insert into staffjoins values(102,'SKM college', ' Commerce','9-feb-2005', 'Ass. Professor', 25000);
insert into staffjoins values(103,'Rajiv lochan college', ' computer Science','15-jan-2020', 'Professor',
45000);
insert into staffjoins values(105,'Royal college', ' Science','12-oct-2017', 'Ass. Professor', 17000);
insert into staffjoins values(106,'SKM college', ' computer Science','15-jun-2015', 'Professor', 22000);
insert into staffjoins values(107,'Royal college', 'Science','15-july-2020', ' Ass. Professor', 10000);
insert into staffjoins values(108,'Rajiv lochan college', ' computer Science','15-nov-2012', 'Lab Ass.',
12500);
Results:-
Results:-
Results:-
or subjects.subject = 'VB.net' );
Results:-
D) List the names and cities of all staff working in your college.
Results:-
E) List the name and cities of all staff working in your college who earn more than 15000.
Results:-
ASSIGNMENT -02
StaffJoin(sid,cname,dept,DOJ,post,salary)
A) Find The Staffs Whose Names Start With ‘M’ Or ‘R’ And Ends With ‘A’ And /Or 7
Characters Long.
Results:-
Results:-
Results:-
D) List the names of subjects, which t1 teachers in this session or all sessions.
Results:-
Results:-
ASSIGNMENT -03
StaffJoin(sid,cname,dept,DOJ,post,salary)
Results:-
CN AM E
SKM college
B) Fined the staffs that earn a higher salary who earn greater than average salary of
their college.
Results:-
Results:-
CNAME SALARY
Royal college 10000
ASSIGNMENT -04
StaffJoin(sid,cname,dept,DOJ,post,salary)
Results:-
B) List the name of the teacher’s departments teachings in more than one department.
where staffs.sid = (select staffjoins.sid from staffjoins group by sid having count(sid)> 1)
Results:-
S NAM E
Ayush
c) Find the names of staff that earn more than each staff of C2 College.
Results:-
15-
Rajiv lochan Computer
Vikash 103 Bhendri 7500710650 103 JAN- professor 45000
college science
20
18-
phulchand computer
Manisha 104 Nawapara 600004251 104 DEC- Professor 37000
college Science
21
12-
A
Vijay 105 Koma 8095120315 Royal college 105 Science OCT- 17000
Professor
17
15-
computer
Sanju 106 Belar 7000185503 SKM college 106 JUN- Professor 22000
Science
15
15- A
Kavita 107 Kutena 7748051577 Royal college 107 Science 10000
JUL-20 Professor
15-
Rajiv lochan computer A
Kumesh 108 Mega 8450567084 108 NOV- 12500
college Science Professor
12
Science 20-
Ramkrishan 109 Rajim 7545857847 109 Commerce Professor 34000
college SEP-05
25-
Raja 110 Nawapara 2542536451 SKM college 110 Science AUG- Professor 23450
17
ASSIGNMENT -05
StaffJoin(sid,cname,dept,DOJ,post,salary)
A) Find all staff that do not work in same cities as the college they work.
Results:-
SNAME
Ayush
Ishwari
Vikash
Manisha
Vijay
Sanju
Kavita
Kumesh
Ramkrishan
Raja
select sname, salary from staffs natural join staffjoins order by salary asc;
Results:-
S NAM E SAL A RY
Kavita 10000
Kumesh 12500
Vijay 17000
Sanju 22000
Raja 23450
Ishwari 25000
Ramkrishan 34000
Manisha 37000
Vikash 45000
Ayush 50000
ASSIGNMENT -06
Object :- Using the following database.
Enrollment (enrollno , name, gender, DOB, address, phone )
Create table Enrollment(enrollno int primary key, name varchar2(20), gender varchar2(20), DOB
date, address varchar2(20), phone number );
desc Enrollment;
Results:-
NAME Varchar2 20 - - - - -
GENDER Varchar2 20 - - - - -
DOB Date 7 - - - - -
ADDRES
Varchar2 20 - - - - -
S
PHONE Number - - - - - -
Create table admission(admno number(10) primary key, enrollno varchar2(20), course varchar2(20),
yearsem varchar2(20), adate date, cname varchar2(20));
Results:-
COURSE Varchar2 20 - - - - -
YEARSE
Varchar2 20 - - - - -
M
ADATE Date 7 - - - - -
CNAME Varchar2 20 - - - - -
(cname varchar(40) primary key, city varchar(20), address varchar(30),phone number(13), afdate
date);
desc college;
Results:-
CITY Varchar2 20 - - - - -
ADDRE
Varchar2 30 - - - - -
SS
PHONE Number - 13 0 - - -
AFDATE Date 7 - - - - -
create table feestructure(course varchar2(20) primary key, yearsem varchar2(20), fee int);
desc feestructure;
Results:-
FEE Number - - 0 - - -
(billno varchar2(20), admno int, amount int, pdate date, purpose varchar2(20));
desc payment;
Results:-
Results:-
Results:-
Results:-
CN AM E CITY AD D R ESS P HO N E AF D A TE
Science college raipur raipur 7945607503 28-JAN-15
Results:-
CO U R SE Y EA R SEM F EE
BCA 3 5000
Ba 3 2000
Bsc 3 3000
Bcom 3 1500
Results:-
c) Get full detail of all students who took admission this year class wise.
order by admission.course ;
Results:-
NAM E
dev tandan
chandni sahu
trilok sahu
vikash rajak
manisha
venu sahu
navin sahu
ajay tandan
anshul rajpa
Results:-
1) By your college
Results:-
CN AM E SUM (P AY M EN T. AM OU N T)
SKM college 11000
2) By each college
Results:-
CN AM E SUM (P AY M EN T. AM OU N T)
science college 15000
3) By all colleges
select sum(payment.amount) from admission, payment
Results:-
S UM (P AY M EN T. AM OU N T)
33500
ASSIGNMENT -07
Object :- Using The Following Database,
Enrollment (enrollno , name, gender, DOB, address, phone )
A) List the student name who have not payed full fee
1. In your college
select name from enrollment, admission, payment
Results:-
NAME
ajay tandan
anshul rajpal
A) List the student name who have not payed full fee
2. In allcolleges
select name from enrollment, admission, payment
Results:-
NAME
ajay tandan
anshul rajpal
Results:-
CO U N T(A DM N O)
4
C) List the student in the session who are not in the colleges in the Same city as
they live in.
select sname from enrollment, admission, college
Results:-
NAM E
Ajay Tandan
Anshul Rajpal
Vikash Rajak
Navin Sahu
Venu Sahu
Shubham Sahu
D) List the student in college in your city and also live in your city.
Select name from enrollment, admission, college
Results:-
NAM E
Manisha
Results:-
1 row(s) deleted.
0.00 seconds
Results:-
ASSIGNMENT -08
A. Create the above tables with the given specification and constraints.
A1) Query to create table subjects:
Create table subjects
desc subjects;
Result:-
Result:-
Result:-
Result:-
Result:-
Result:-
Result:-
Result:-
Result:-
Result:-
E) list all students in BCA who have scored higher than average
Query to show to table:
select scores.rollno,scores.marks from scores,students
where students.class='bca'
and scores.rollno=students.rollno
and scores.marks>(select avg(scores.marks)from scores) ;
Result:-
H.T.M.L.
INDEX
Que. Objective of practical Page
No. HTML No.
1. 1.Write an HTML program to create the following table:
Class Subject1 Subject2 Subject3
BCA I Visual Basic PC Software Electronics 39-
BCA II C++ DBMS English 40
BCA III Java Multimedia CSA
5. 5. Write an HTML program to create frames in HTML with 3 columns (Width = 30%,
30%, 30%). 44
6. 6. Write an HTML program to create a web page with a blue background and
the following text:
New Delhi
New Delhi, the capital and the third largest city of India is a fusion of the ancient and 45
the modern. The refrains of the Muslim dynasties with its architectural delights, give
the majestic ambience of the bygone era.
46-
48
49-
50
11. 11. Write the HTML coding to display the following table:
55-
56
57
13. 13. Write an HTML program to create a web page with an image as background
and the following text:
New Delhi
New Delhi, the capital and the third largest city of India is a fusion of the 58
ancient and the modern. The refrains of the Muslim dynasties with its architectural
delights, give the majestic ambience of the bygone era.
On the other side New Delhi, the imperial city built by British, reflect the fast
paced present. The most fascinating of all is the character of Delhi which varies from
the 13th present century mausoleum of the Lodi kings to ultra modern glass skyscrapers.
59
60
61-
16. 16.Create the following HTML form: 62
17. 17. Write the HTML coding for the following equations:
C2H5OH+PCL5=C2H5CL+POCL3+HCL 63
4H3PO3=3H3PO4+PH3
PCL3+CL2=PCL5
18. 18. Write the HTML code to display the following:
1. Actors
1. Bruce Willis
2. Gerard Butler 64
3. Vin Diesel
4. Brad Pitt
2. Actress
1. Julia Roberts
2. Angelina Jolie
3. Kate Winslet
4. Cameron Diaz
PROGRAM NO. 1
Q.1. Write an HTML program to create the following table:
Class Subject1 Subject2 Subject3
BCA I Visual Basic PC Software Electronics
BCA II C++ DBMS English
BCA III Java Multimedia CSA
ANS:-
PROGRAM CODING:-
<html>
<head>
<style>
table, th, td
border-collapse:collapse;
</style>
</head>
<table>
<tr>
<th> class</th>
<th>subject1</th>
<th>subject1</th>
<th>subject1</th>
</tr>
<tr>
<td> PC Software</td>
<td> Electronics</td>
</tr>
<tr>
<td> DBMS</td>
<td> English</td>
</tr>
<tr>
<td> Java</td>
<td> Multimedia</td>
<td> CSA</td>
</table>
</html>
OUTPUT:-
PROGRAM NO. 2
Q.2. Write an HTML program to create the following lists:
(V) C
(VI) C++
(VII) Fortran
(VIII) COBOL
ANS:-
PROGRAM CODING:-
<html>
<head>
<style>
ol
{
list-style:none;
}
li:before
{
content: "("counter(section,upper-roman)")";
}
li
{
counter-increment:section;
}
</style>
</head>
<body>
<ol>
<li> C</li>
<li>C++</li>
<li>   Fortran</li>
<li>   COBOL</li>
</ol>
</body>
</html>
Output:-
PROGRAM NO. 3
Q.3. Write an HTML program to create the following lists:
5. Java
6. Visual Basic
7. BASIC
8. COBOL
ANS:-
PROGRAM CODING:-
<html>
<ol type="1">
<li> Java</li>
<li>Visual</li>
<li> BASIC</li>
<li>COBOL</li>
</ol>
</html>
Output:-
PROGRAM NO. 4
Q.4. Write an HTML program to demonstrate hyper linking between two web pages. Create
a marquee and also insert an image in the page.
ANS:-
PROGRAM CODING
<html>
<body>
<a href="https://www.youtube.com/?gl=IN&tab=r1">
</body>
<body>
</body>
</html>
Output:-
PROGRAM NO. 5
Q.5. Create an HTML program to create frames in HTML with 3 columns (Width = 30%,30%,30%).
ANS:-
PROGRAM CODING:-
<html>
<head>
<title>frame tag</title>
</head>
<!-- <frameset cols=30%,30%,40%">
<frame src="C:\Users\Public\Pictures\Sample Pictures\Jellyfish.jpg">
<frame src="C:\Users\Public\Pictures\Sample Pictures\Hydrangeas.jpg">
<frame src="C:\Users\Public\Pictures\Sample Pictures\Hydrangeas.jpg">
</frameset>
<!-- <frameset>
<frame src="C:\Users\Public\Pictures\Sample Pictures\Jellyfish.jpg">
</frameset> -->
Output:-
PROGRAM NO. 6
Q.6. Write an HTML program to create a web page with a blue background and the
following text:
New Delhi
New Delhi, the capital and the third largest city of India is a fusion of the ancient and the modern.
The refrains of the Muslim dynasties with its architectural delights, give the majestic ambience of the
bygone era.
ANS:
PROGRAM CODING:-
<html>
<head> <head>
<body bgcolor="lightblue">
<p><u> <b><center>New Delhi</center></b></u><i> New Delhi, the capital and the third largest
city of India is a fusion of the ancient and the mordern. The refrains of the Muslim dynasities with its
architectural delights, give the majestic ambience of the bygone era.</i></p>
</body>
</html>
Output:-
PROGRAM NO. 7
Q.7. Write an HTML program to create the following table:
ANS:
PROGRAM CODING:-
<html>
<head>
<style>
</style>
</head>
<h3><b><u><center> admission</center></u></b></h3>
<body>
<center>
<table border="1" style="text-align:center; width:30%; border-collapse:collapse;">
<tr>
<th style="text-align:left"> course</th>
<th>OC</th>
<th> BC</th>
<th>MBC</th>
<th>SC/ST</th>
<th>TOTAL</th>
</tr>
<tr>
<th style="text-align:left"> computer science</th>
<td>9</td>
<td>18</td>
<td>5</td>
<td>5</td>
<td>37</td>
</tr>
<tr>
<th style="text-align:left"> commerce</th>
<td>14</td>
<td>25</td>
<td>6</td>
<td>5</td>
<td>50</td>
</tr>
<tr>
<th colspan="5"style="text-align:left"> grand total</th>
<td> 87</td>
</tr>
</table> <html>
<head>
<style>
</style>
</head>
<h3><b><u><center> admission</center></u></b></h3>
<body>
<center>
<table border="1" style="text-align:center; width:30%; border-collapse:collapse;">
<tr>
<th style="text-align:left"> course</th>
<th>OC</th>
<th> BC</th>
<th>MBC</th>
<th>SC/ST</th>
<th>TOTAL</th>
</tr>
<tr style="text-align:left">
<th> computer science</th>
<td>9</td>
<td>18</td>
<td>5</td>
<td>5</td>
<td>37</td>
</tr>
<tr style="text-align:left">
<th> commerce</th>
<td>14</td>
<td>25</td>
<td>6</td>
<td>5</td>
<td>50</td>
</tr>
<tr>
<th colspan="5"style="text-align:left"> grand total</th>
<td> 87</td>
</tr>
</table>
</center>
</body>
</html>
</center>
</body>
</html>
OUTPUT:-
PROGRAM NO. 8
Q.8. Write an HTML program to create the following table:
ANS:
PROGRAM CODING:-
<html>
<head>
<style>
</style>
</head>
<h3><u><center> Car Price List</center></u></h3>
<body>
<center>
<table border="1" style="text-align:center; width:40%; border-collapse:collapse;">
<tr>
<th colspan="2">Maruti</th>
<th colspan="2">Tata</th>
<th colspan="2">Ford</th>
<tr>
<style="text-align:center">
<th>Model</th>
<th>Price</th>
<th>Model</th>
<th>Price</th>
<th>Model</th>
<th>Price</th>
</tr>
<tr style="text-align:left">
<td>Maruti 800</td>
<td>2 Lac</td>
<td>Sumo</td>
<td>2 Lac</td>
<td>Ikon</td>
<td>5 Lac</td>
</tr>
<tr style="text-align:left">
<td>Omni</td>
<td>3 Lac</td>
<td>Scropio</td>
<td>3 Lac</td>
<td>Gen</td>
<td>2 Lac</td>
</tr>
</table>
</center>
</body>
</html>
OUTPUT:-
PROGRAM NO. 9
Q.9. Write an HTML program to create the following table:
Students Records
ANS:-
PROGRAM CODING:-
<html>
<head>
<style>
table, th, td
{
border: 1px solid black;
border-collapse:collapse;
}
</style>
</head>
<u> <b><center>Students Records</center></b></u>
<center>
<table>
<tr>
<th> <center>Name</center></th>
<th><center>Subject</center></th>
<th> <center>Marks</center></th>
</tr>
<tr>
<td><center> Arun</center></td>
<td> <center>Java</center></td>
<td><center> 70</center></td>
</tr>
<tr>
<td> </td>
<td><center>C</center></td>
<td><center>80</center></td>
</tr>
<tr>
<td><center>Ashish</center> </td>
<td><center>Java</center></td>
<td><center>75</center></td>
</tr>
<tr>
<td> </td>
<td><center>C</center></td>
<td><center>69</center></td>
</tr>
</table > </center>
</html>
Output:-
PROGRAM NO. 10
Q.10. Write the HTML coding to display the following table. Also insert an image in the web page.
ANS:-
PROGRAM CODING:-
<html>
<head>
</head>
<body background=
"C:\Users\Public\Pictures\Sample Pictures\
Lighthouse.jpg" hight="30" width="30">
<center>
<table border="1" style="text-align:left; width:30%;
border-collapse:collapse;>
<tr style="text-align:left;>
<th>Subject</th>
<th>Max</th>
<th>Min</th>
<th>obtain</th>
</tr>
<tr style="text-align:left">
<td>Java</td>
<td>100</td>
<td>33</td>
<td>75</td>
</tr>
<tr style="text-align:left">
<td>Multimedia</td>
<td>100</td>
<td>33</td>
<td>70</td>
</tr>
<tr style="text-align:left">
<td>Opreting system</td>
<td>100</td>
<td>33</td>
<td>68</td>
</tr>
<tr style="text-align:left">
<td>C++</td>
<td>100</td>
<td>33</td>
<td>73</td>
</tr>
</table>
</center>
</body>
</html>
OUTPUT:-
PROGRAMNO. 11
Q.11. Write the HTML coding to display the following table:
ANS:-
PROGRAM CODING:-
<html>
<head>
<style>
</style>
</head>
<body>
<center>
<table border="1" style="text-align:left; width:30%; border-collapse:collapse;">
<tr>
<th colspan="2">Name</th>
<td colspan="2">Rahul</td>
</tr>
<tr>
<th colspan="2">Roll No.</th>
<td colspan="2">101</td>
</tr>
<tr style="text-align:left">
<th>Subject</th>
<th>Max</th>
<th>Min</th>
<th>obtain</th>
</tr>
<tr style="text-align:left">
<td>Java</td>
<td>100</td>
<td>33</td>
<td>75</td>
</tr>
<tr style="text-align:left">
<td>Multimedia</td>
<td>100</td>
<td>33</td>
<td>70</td>
</tr>
</table> </center>
</body>
</html>
OUTPUT:-
PROGRAM NO. 12
Q.12.Write an HTML coding to display the following table:
ANS:-
PROGRAM CODING:-
<html>
<body>
<form>
<label> Enter Name:   <input type="text" value=""/></label><br>
<label>Enter Roll No.:  <input type="text"/></label><br>
<label>Enter Age:   <input type="text"/></label><br>
<label>Enter DOB:    <input type="text"/></label><br>
</form>
</body>
</html>
OUTPUT:-
PROGRAM NO. 13
Q.13. Write an HTML program to create a web page with an image as background and the
following text:
New Delhi
New Delhi, the capital and the third largest city of India is a fusion of the ancient and the
modern. The refrains of the Muslim dynasties with its architectural delights, give the majestic
ambience of the bygone era.
On the other side New Delhi, the imperial city built by British, reflect the fast paced present.
The most fascinating of all is the character of Delhi which varies from the 13 th present century
mausoleum of the Lodi kings to ultra modern glass skyscrapers.
ANS:-
PROGRAM CODING:-
<html>
<head> <head>
<p><u> <b><center>New Delhi</center></b></u>  New Delhi, the capital and the third
largest city of India is a fusion of the ancient and the mordern. The refrains of the Muslim dynasities
with its architectural delights, give the majestic ambience of the bygone era.</p>
<p>  On the other side new Delhi, the imprial city built by British, reflect the fast paced
present. The most fascinating of all is the character of Delhi which varies from the 13<super>
th<super> present century mausoleum of the Lodi kings to ultra modern glass skyscrapers.</p>
</body>
</html>
OUTPUT:-
PROGRAM NO. 14
Q.14. Create the following HTML form.
ANS:-
PROGRAM CODING:-
<html>
<head>
<title>paragraph </title>
</head>
<body>
<form>
<table> username:<input type="text" value="xyz"/></table>
<label> password:<input type="password"/></label><br>
<p> When user types characters in a password field, the browser displays asterisks or bullets instead
of characters.<br>
<button type="submit">submit</button>
</form>
</body>
</html>
OUTPUT:-
PROGRAM NO. 15
Q.15.Create the following HTML form:
ANS:-
PROGRAM CODING:-
<html>
<body>
<border="left">
<form>
<label> FIRSTNAME : <input type="text"/></table><br>
<label> LASTNAME : <input type="text"/></label><br>
<p>GENDER:<br>
<label>Male <input type="radio"name="gender"></label>
<label>female <input type="radio"name="gender"></label><br>
<p>SUBJECT:
<select>
<option>multimedia</option>
<option>operating</option>
<option>CSA</option>
</select><br>
<pre>
<button type="submit">Submit Query</button>
</form>
</body>
</html>
OUTPUT:-
PROGRAM NO. 16
Q.16.Create the following HTML form:
ANS:-
PROGRAM CODING:-
<html>
<body>
<form>
<label>Enter your name : <input type="text"/><br>
<label>Enter your rollno : <input type="text"/><br>
<p>Subject :<br>
<label><input type="checkbox">Java</select><br>
<label><input type="checkbox">c</select><br>
<label><input type="checkbox">Visual Basic</select><br>
<label><input type="checkbox">C++</select><br>
<p>Class:
<select>
<option>BCA I</option>
<option>BCA II</option>
<option>BCA III</option>
</select><br>
<pre>
<button type="submit">Submit Query</button>
</form>
</body>
</html>
OUTPUT:-
PROGRAM NO. 17
Q.17. Write the HTML coding for the following equations:
C2H5OH+PCL5=C2H5CL+POCL3+HCL
4H3PO3=3H3PO4+PH3
PCL3+CL2=PCL5
ANS:-
PROGRAM CODING:-
<html>
<body>
<p>
C<sub>2</sub>H<sub>5</sub>OH+PCL<sub>5</sub>=C<sub>2</sub>H<sub>5</sub>CL+POCL
<sub>3</sub>+HCL
<p>4H<sub> 3</sub>PO<sub>3</sub>=3H<sub>3</sub>PO<sub>4</sub>+PH<sub>3</sub></p>
<p>PCL<sub> 3</sub>+CL<sub>2</sub>=PCL<sub>5</sub>
</p>
</body>
</html>
Output:-
PROGRAM NO. 18
Q.18. Write the HTML code to display the following:
1. Actors
5. Bruce Willis
6. Gerard Butler
7. Vin Diesel
8. Brad Pitt
2. Actress
1. Julia Roberts
2. Angelina Jolie
3. Kate Winslet
4. Cameron Diaz
PROGRAM CODING:-
<html>
<body>
<ol type="1">
<li>Actors</li>
<ol type="1">
<li> Bruce Willis</li>
<li> Gerard Butler </li>
<li> Vin Diesel </li>
<li> Brad Pitt </li>
</ol>
<li> Actress </li>
<ol type="1">
<li> Julia Roberts </li>
<li> Angelina Jolie </li>
<li> Kate Winslet </li>
<li> Cameron Diaz </li>
</ol>
</ol>
</body>
</html>
Output:-
PROGRAM NO. 19
Q.19. Write the HTML code to display the following:
Cricket players
1. Batsman
1. Sachin Tendulkar
2. Rahul Dravid
3. Virendra Sehwag
2. Bowler
d. Kumble
e. Zaheer Khan
f. Balaji
3. Spinner
d) Harbhajan
e) Kumble
f) Kartik
ANS:-
PROGRAM CODING:-
<html>
<body>
<ol type="1">
<li>Bastman</li>
<ol type="1">
<li>Sachin Tendulkar</li>
</ol>
<li> Bowler</li>
<ol type="a">
<li>Kumble</li>
<li> Balaji</li>
</ol>
<li> Spinner</li>
<ol type="a">
<li>Harbhajan</li>
<li> Kumble</li>
<li> Kartik</li>
</ol>
</ol>
</body>
</html>
Output:-