Write An HTML Program To Create The Table
Write An HTML Program To Create The Table
Solution:-
<html>
<head>
<title>table</title>
</head>
<body>
<table border="1">
<caption align="bottom">
<tr><th>class
<th>SUB1
<th>SUB2
<th>SUB3
</th>
</tr>
<tr>
<td>BCA1
<td>VB
<td>pc software
<td>Eletronics
</td>
</tr>
<td>BCA2
<td>c++
<td>DBMS
<td>English
</td>
</tr>
<tr>
<td>BCA3
<td>JAVA
<td>multimedia
<td>CSA
</td>
</tr>
</table>
</body>
</html>
Output
2. Write an html program to create the following list Introductory Information
Technology
IT Basics
IT Tools
Ms-access
HTML
IT-Application
Solution:-
<html>
<head>
<title>list program</title>
</head>
<ul type="square
<ul type="disc">
<li>IT basics
<li>IT tools
<li>MS access
<li>html
<li>IT application
</li>
</body>
</html>
Output:-
3. Write an html program to create the following list
Java
Visual Basic
Basic
Cobol
Fortran
Solution:-
<html>
<head>
<title></title>
</head>
<body>
<ol>
<dd>JAVA</dd>
<dd>Visual basic
<dd>basic
<dd>cobol
<dd>fortran
</ol>
</body>
</html>
Output:-
4.Write an html program to demonstrate hyper linking between two web pages
create a marquee and also insert an image in the page
Solution:-
<html>
<head>
<title>marquee</title>
</head>
<body>
<hr>
<marquee>
</marquee>
</body>
</html>
Output:-
5.Write an HTml Program Create frames in html with 3 Columns(
width=30%,30%,40%)
Solution:-
<html>
<head>
<title>frameset</title>
</head>
<frameset cols="30%,30%,40%">
<frame src="n.html"></frame>
<frame src="kk.html"> </frame>
<frame src="li.html"> </frame>
</frameset>
</html>
Output:-
6. Write an html program Create frames in html with 3 Columns and 2 rows
Solution:-
<HTML>
<HEAD>
<TITLE>Frames</TITLE>
</HEAD>
<FRAMESET cols="33%, 33%, 34%">
<FRAME src="one.html">
<FRAMESET rows="40%, 60%">
<FRAME src="two.html">
<FRAME src="three.html">
</FRAMESET>
<FRAME src="four.html">
</FRAMESET>
</HTML>
File one.html
<html>
<head>
</head>
<body>
</body>
</html>
File two.html
<html>
<head>
</head>
<body>
</body>
</html>
File Third.html
<html>
<head>
</head>
<body>
</body>
</html>
File four.html
<html>
<head>
</head>
<body>
</body>
</html>
Output:-
7. Write in 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, given the majestic ambience of the bygone era.
Solution:-
<html>
<head>
<title>bg color program
</title>
</head>
<body bgcolor="blue">
<h1> new delhi</h1>
<p> 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 dynasties with its
architectural delights give the majestic ambience of the by gone area
</body>
</html>
Output:-
8. Write an html Program to Create the following table Admission
Course OC BC MBC SC/ST Total
Computer Science 9 18 5 5 37
Commerce 14 25 6 5 50
Grand Total 87
Solution:-
<html>
<head>
<title>
</title>
</head>
<body>
<table border="4">
<tr><th>course
<th>oc
<th>bc
<th>mbc
<th>sc/st
<th>total
</th>
</tr>
<tr>
<td>computer science
<td>9
<td>18
<td>5
<td>5
<td>37
</tr>
<tr>
<td>commerce
<td>14
<td>25
<td>6
<td>5
<td>50
</tr>
<tr>
<td>grand total
<td>
<td>
<td>
<td>
<td>87
</tr>
</body>
</html>
Output:-
9. Write an html Program to create the following table
Solution:-
<html>
<head>
<title>
</title>
</head>
<body>
<table border="4">
<tr><th>maruti
<td>
<th>tata
<td>
<th>ford
</th>
</tr>
<tr>
<td>modal
<td>price
<td>modal
<td>price
<td>modal
<td>price
</tr>
<tr>
<td>maruti800
<td>2lac
<td>sumo
<td>2lac
<td>J kon
<td>5lac
</tr>
<tr>
<td>ommi
<td>3lac
<td>scorpio
<td>3lac
<td>gem
<td>2lac
</tr>
</body>
</html>
Output:-
10. Write an html Program Creating images such as left position, Right position,
center position etc using ALT attribute with image tag
Solution:-
<html>
<head>
<title></title>
</head>
<body>
<tr>
<td><img src="logo.gif"></td>
</tr>
</body>
</html>
Output:-
11. Write an html program to creating following table
Student Information
Roll No. Name Class
1001 Amit BCA
1002 Sandeep B.E.
1003 Ravi MCA
1004 Priya M.E.
Solution:-
<html>
<head>
<title>
</title>
</head>
<body>
<table border="1">
<tr><th>
<th>student information
</th>
</tr>
<tr>
<td>roll no.
<td>name
<td>class
</td>
</tr>
<tr>
<td>1001
<td>amit
<td>BCA
</td>
</tr>
<tr>
<td>1002
<td>sandeep
<td>BE
</td>
</tr>
<tr>
<td>1003
<td>ravi
<td>MCA
</td>
</tr>
<tr>
<td>1004
<td>priya
<td>ME
</td>
</tr>
</body>
</html>
Output:-
12. Write an html program to create following table using row span attribute
STUDENT INFORMATION
Solution:-
<html>
<head>
<title></title>
</head>
<body>
<table border="4">
<tr>
<th rowspan="4"><br><br>year<br>2012<br>to<br>2013<br></th>
</tr>
<tr>
<td>roll no
<td>class
<td>name
</td>
</tr>
<tr>
<td>1001
<td>bca
<td>amit
</td>
</tr>
<tr>
<td>1002
<td>bca
<td>mala
</td>
</tr>
<tr>
<td>1003
<td>bca
<td>ranu
</td>
</tr>
<tr>
<td>1004
<td>bca
<td>priya
</td>
</tr>
</table>
</body>
</html>
Output:-
13. Write an html program to insert any image to the left position
*
Image
Solution:-
<html>
<head>
<title></title>
</head>
<body>
<p>
<image src="130.jpg"align="bottom"height="400"width="400">
</p>
</body>
</html>
Output:-
14. Write the html loding for the following Equations
C2H2OH+PCL5=C2H2CL+POCL3+HCL
4H3PO3=3H3PO4+PH3
PCL3+CL3=PCL5
Solution:-
<html>
<head>
<title></title>
</head>
<body>
c<sub>2</sub>h<sub>2</sub>oh+pcl<sub>5</sub>=c<sub>2</sub>h<sub
>5</sub>cl+pocl<sub>3</sub+hcl<br> </br>
4th<sub>3</sub>p4<sub>3</sub>=3h<sub>3</sub>po<sub>4</sub>+ph<s
ub>3</sub> <br>
pcl<sub>3</sub>cl<sub>2</sub>=pcl<sub>5</sub><br>
</body>
<html>
Output:-
15.Write an html program to create the following table
Solution:-
<html>
<head>
</head>
<body>
<table border="2">
<caption align="middle">
</caption>
<tr><th>name
<th>subject
<th>marks
</th>
</tr>
<tr>
<td>Amit
<td>JAVA
<td>70
</tr>
<tr>
<td>
<td>c
<td>79
</td>
</tr>
<tr>
<td>Ravi
<td>java
<td>75
</td>
</tr>
<tr>
<td>
<td>c
<td>69</td>
</tr>
</table>
</body>
</html>
Output:-
16. Write an html program to create a form as the following
Enter name :
Enter Roll No :
Enter Age :
Enter DOB :
Reset
Solution:-
<html>
<head>
<title></title>
</head>
<body>
<form>
Enter name :
<input tpye="Enter name " size="25">
<br>
Enter roll no :
<input type="Enter rollno" size="25">
<br>
Enter age :
<input type="Enter age" size="25">
<br>
Enter DOB :
<input type=" Enter DOB" size="25">
<br>
<input type="reset" value="reset">
<br>
</form>
</body>
</html>
Output:-
17.Write an html program to create a following html form
User Name
Password
Solution:-
<html>
<head>
<title></title>
</head>
<body>
<form>
user name
<input type="user name" size="25">
<br>
password
<input type="password" size="25">
<br>
<input type="submit"value="submit">
<br>
</form>
</body>
</html>
Output:-
18.Write an html program to create the following form in html
Gender ○ Male
○Female
Sub- □ Java
□C
□ C++
□ VB
Class:- BCA I
Solution:-
<html>
<head>
<title>BUTTON</title>
</head>
<body>
<form>
&
nbsp;<input type="radio", Value="male">male<br>
&
nbsp;<input type="radio", value="female">female<br>
subject<br>
&
nbsp;<input type="checkbox">Java<br>
&
nbsp;<input type="checkbox">C<br>
&
nbsp;<input type="checkbox">C++<br>
&
nbsp;<input type="checkbox">vb<br>
<br> Class:
<Select name="Class">
<option name="BE"> BE
<potion name="BA"> BA
</select>
</body>
</html>
Output:-
19. write an html program to write following text and using BJU strik
through
New delhi KB – the capital (1) & the third largest city of india is a fusion of
the anceient & the modern the remains of the muslim dynasties(u) with it
& architect wal delights give the majestic ambience of the bygone er(B)(/i)
Solution:-
<html>
<head>
<title>New Delhi</title>
</head>
<body>
<p><b>New Delhi,</b><i> the Capital</i> and the third largest city of india
in a fusion of the anciant and the modern the modern the romain of the <u>
muslim dyrasfies </u><b><i> with its archiectural delights give the majestic
ambience of the bygone era </b></i>
</body>
</html>
Output:-
20. write an HTML program to create following frames
You are visiting our site this site will give you information on the union
territory of Delhi & state of HTML Haryana ,Mizoram & Chhattisgarh
Solution:-
<html>
<head>
</head>
<body>
<img src="india.jpeg" height="90" width="100" align="right">
You are visiting our site.This site will give you information on the union
Terriotry of Delhi & state of Haryana,Mizoram and Chhattisgarh
</font></font></br>
<Center>
<table Border="2" width="100%">
<tr><td align="center"><font face="Arial">
<a href="delhi.html">Delhi</a></font></td>
<td align="center">