Professional Documents
Culture Documents
Ict Lab#5
Ict Lab#5
TASK#1:
<html>
<head>
<title> ONLINE BOOK STORES</title>\\ Sets the title of the webpage
</head>\\Closes the head section
<body bgcolor="pink">\\Sets the background color of the body to pink
<FRAMESET ROWS="20%,*">\\Defines a frameset with two rows
<FRAME NAME="A2" SCROLLING="YES" SRC="head.html">\\Loads content from
head.html into a frame named A2
</BODY>
</HTML>
TASK#2:
<html>
<head>
<center><u><h1>Registration
Form</h1></u></center>\\Centered and underlined heading
</head>
<body>
<fieldset width=300><legend class=heading>Registration
Form</legend>\\Fieldset with legend for styling
<form actions="http://localhost:8080//servlet-
examples//KiranUserProfile">\\Form with action attribute pointing to a servlet
<pre class="reg">\\Preformatted text with class for styling
First Name : <input type="text" size=30> \\Text input for First Name
Last Name : <input type="text" size=30>\\Text input for Last Name
Age : <input type="text" size=30 onFocus="kirandisp()">\\Text input for Age with
onFocus event
TASK#3:
<html>
<head><center>\\Head section of the document with centered text
<font size="6" color="Black" ><h1><u>User
login.....</u><h1></font></center>\\Setting font size, color, and heading for the login
prompt
</head>
<form method="POST" ACTION="http://localhost:8080//servlet-
examples//KiranPass">\\Form for user input, sends data to specified URL using POST method
<body bgcolor="0x1ff0f2">\\Setting background color
<pre>
Enter Name : <input type="text" name="name" size=15 > <br>\\Input field for
entering name