10-24-2010, 05:11 PM
Question # 2
Write down the HTML code for the following tasks.
(a) Set the background color of the browser windowto blue, text color to white
and link color to yellow.
Solution:-
(b) Divide the browser window in 4 equal sized vertical frames. Also note that
border of the frame should be invisible and user should not be able to change the
size of frame.
Solution:-
[HTML]<html>
<head>
<title>Vertical Frames</ title>
</ head >
<frameset cols ="15%, 15%, 15%, 15 %">
<frame noresize frameborder =0>
<frame noresize frameborder =0>
<frame noresize frameborder =0>
<frame noresize frameborder =0>
</ frameset >
</html >[/HTML]© Design a form in HTML that will contain two text boxes (ID, Password) and
two buttons (Submit, Reset).
Solution:-
Write down the HTML code for the following tasks.
(a) Set the background color of the browser windowto blue, text color to white
and link color to yellow.
Solution:-
Code:
<html>
<head>
<title>IT430 </ title>
</ head >
<body bgcolor=blue text=white link=yellow>
<h1> IT430</h1>
Best research site<a href=http://www.google.com >google.com</a>
</body >
</html>border of the frame should be invisible and user should not be able to change the
size of frame.
Solution:-
[HTML]<html>
<head>
<title>Vertical Frames</ title>
</ head >
<frameset cols ="15%, 15%, 15%, 15 %">
<frame noresize frameborder =0>
<frame noresize frameborder =0>
<frame noresize frameborder =0>
<frame noresize frameborder =0>
</ frameset >
</html >[/HTML]© Design a form in HTML that will contain two text boxes (ID, Password) and
two buttons (Submit, Reset).
Solution:-
Code:
<html>
<body>
<h1>Form</h1>
<form action="http://www.vu.edu.pk" method="post">
<table>
<tr><td>I.D</td>
<td>
<input type="text" maxlength="12">
</td>
<tr>
<td>Password</td>
<td>
<input type="Password" maxlength="6">
</td>
<tr>
<td>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</td>
</table>
</form>
</body>
</html>
