0% found this document useful (0 votes)
5 views5 pages

HTML Frameset and Form Examples

Uploaded by

yashlanjewar370
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

HTML Frameset and Form Examples

Uploaded by

yashlanjewar370
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PRACTICAL NO 19

Write a Program in HTML to demonstrate the use of frameset.


Code:
<html>
<head>
<title>Practical_19</title>
<frameset cols="50%,50%">
<frame src="[Link]" name="frame1">
<frame src="[Link]" name="frame2">
</frameset>
</head>
</html>
Practical 20
Write a Program in HTML to demonstrate the use of form.
<Head>
<Title>
Create a Registration form
</Title>
</Head>
<Body>
The following tags are used in this Html code for creating the Registration form:
<br>
<form>
<label> First name </label>
<input type="text" name="firstname" size="15"/> <br> <br>
<label> Last name: </label>
<input type="text" name="lastname" size="15"/> <br> <br>
<label>
Course :
</label>
<select>
<option value="Course">Course</option>
<option value="BCA">BCA</option>
<option value="BBA">BBA</option>
<option value="[Link]">[Link]</option>
<option value="BA">BA</option>
<option value="MCA">MCA</option>
<option value="MCM">MCM</option>
</select>
<br>
<br>
<label>
Gender :
</label><br>
<input type="radio" name="gender"/> Male <br>
<input type="radio" name="gender"/> Female <br>
<input type="radio" name="gender"/> Other
<br>
<br>
<label>
Hobbies:
</label>
OUTPUT:
Practical 21

HTML Program to create a Website using html5 with CSS.

<!Doctype html>

<html>

<head>

<title>My websites</title>

<link href="[Link]" type="text/css" rel="stylesheet">

</head>

<body>

<div id="main">

<h1>This is my Website</h1>

<hr>

<p>HTTP means Hypertext transfer protocol</p>

<p>HTTP means Hypertext transfer protocol</p>

<p>HTTP means Hypertext transfer protocol</p>

<p>HTTP means Hypertext transfer protocol</p>

<p>HTTP means Hypertext transfer protocol</p>

</div>

<marquee><font color="blue">HTTP means Hypertext Transfer Protocol</font></marquee>

</body>

</html>

[Link]

body{

background-color:Pink;

text-align:center;

#main{

width:500px;

height:400px;

background-color:green;
margin:25px auto;

h1{

text-align:center;

font-family:"Times New Roman";

font:24pt;

color:pink;

hr{

height:2px;

color:black;

p{

font-family:"Arial";

font-size:12pt;

text-align:center;

text-indent:48px;

color:yellow;

text-decoration:italic;

OUTPUT:

You might also like