Solution Q.2:
Write down the HTML code for the following tasks.
a) Set the background colour of the browser window to blue, text colour to white and link colour to yellow.
<HTML>
<HEAD>
<TITLE> Assignment #1 </TITLE>
</HEAD>
<BODY BGCOLOR=”BLUE” TEXT=”WHITE” LINK=”YELLOW”>
</BODY>
</HTML>
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.
<HTML>
<HEAD>
<TITLE> Assignment #1 </TITLE>
</HEAD>
<FRAMESET COLS="25%,25%,25%,25%" BORDER="0">
<FRAME NORESIZE>
<FRAME NORESIZE>
<FRAME NORESIZE>
<FRAME NORESIZE>
</FRAMESET>
</HTML>
c) Design a form in HTML that will contain two text boxes (ID, Password) and two buttons (Submit, Reset).
By clicking the submit button form should be submitted to
[You must be registered and logged in to see this link.] using POST method.
<HTML>
<HEAD>
<TITLE> Assignment #1 </TITLE>
<BODY>
<FORM ACTION=”http://
[You must be registered and logged in to see this link.] METHOD=”POST”>
I.D : <INPUT TYPE=”TEXT”>
<P>
PASSWORD : <INPUT TYPE=”TEXT”>
<P>
<INPUT TYPE=”SUBMIT” VALUE=”SUBMIT”>
<INPUT TYPE=”RESET” VALUE=”RESET”>
</FORM>
</BODY>
</HTML>