Homework - 01
Homework - 01
SUBMITTED TO
MISS SHEENA PAHUJA
SUBMITTED BY
PRIYANKA SHARMA
ROLL NO RTB901A04
Part-A
Q1) Create a HTML Form which uses hyperlinks, marqee to display static data
about any organization?
Ans) <html>
<head>
<title> <my name is priyanka></title>
</head>
<body bgcolor="red">
<h1 style =color:"yellow"> computer is an electronics device</h1>
<img src=C:\Users\Administrator\Downloads\white_roses-dsc08876-a12.jpg
height="200" width="300">
<marquee><h2 style=color:blue> out put devices are </h2></marquee>
<img src=C:\Users\Administrator\Downloads\1008-092-29-1068.gif
height="200" width="300">
<a href="C:\Users\Administrator\Desktop\gift.html">image</a>
<dl>
<font size="5">
<dt><i>cofee</i></dt>
<dd> <i>hot cofee<i></dd>
<dt>milk</dt>
<dd><i>hot milk is<i></dd>
</dl>
<ul type=square>
<li><i>monitor</i></li>
<li><i>keyboard</i></li>
<li><i>scanner</i></li>
</blink>
</ul>
</body>
</html>
Q2) Can we access a website without using WWW? If yes how we achieve it?
Ans) yes ,I can accsess website without using www .A gopher screen consists
of numbered menu items. We need to highlight the desired item with the cursor
keys and press enter. When we select a menu item, gopher tunnels through
internet pathways to find the information we requested and retrieve it to our
computer. By default, all popular Web browsers assume the HTTP protocol. In
doing so, the software pretends the 'http: //' onto the requested URL and
automatically connect to the HTTP server on port 80 Web servers should allow
access to their pages though the main domain unless a particular sub domain is
required.
Q3) Create a login Form of Library Management System in HTML which
should be different for user and admin?
ANS) <Html>
<META HTTP-EQUIV = "Pragma" CONTENT="no-cache">
<Title> Security FVT Login Page </title>
<Body>
<h2>Form Login</h2>
<FORM METHOD=POST ACTION="j_security_check">
<p>
<font size="2"> <strong> Enter user ID and password: </strong></font>
<BR>
<Strong> User ID</strong> <input type="text" size="20" name="j_username">
<Strong> Password </strong> <input type="password" size="20"
name="j_password">
<BR>
<BR>
<font size="2"> <strong> and then click this button: </strong></font>
<input type="submit" name="login" value="Login">
</p>
</form>
</body>
Part-B
Q 4 Create a HTML Form which acts as registration form for a student when
student visits website of LPU.
Ans) <html>
<Head>
<Title>My page title</title>
</head>
<body BGCOLOR="PINK">
<Form>
SUBMIT/////////
<INPUT TYPE ="SUBMIT" VALUE="SUBMIT">
</PRE>
</FORM>
</BODY>
</HTML>
Q5) Create an HTML form that interacts with the user. On this form, collect the
first name, last name, and date of birth. After its captured, display this
information back to the user.
Ans) <HTML>
<HEAD><TITLE>priyanka</TITLE>
</HEAD>
<BODY BGCOLOR="blue">
<FORM>
<TABLE BORDER=12 align=center width=100 height=150>
<TR>
<TD BGCOLOR=PINK> First.Name</TD>
<TD>
<INPUT type=text name="First.name">
</TD>
</TR>
<TR>
<TD BGCOLOR=PINK>Last Name </TD>
<TD>
<INPUT type=text name="LAST NAME">
</TD>
<TR>
<TD BGCOLOR=PINK> Birtdate </TD>
<TD>
<INPUT type=text name="birth date">
</TD>
</TR>
<TR>
<TD COLSPAN=2>
<INPUT type="submit" value="Send">
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
Q6) Create HTML Form in which you have to use nested lists by taking any
real world example?
ANS) <HTML>
<HEAD>
<TITLE> WELCOME TO LIST</TITLE>
<BODY BGCOLOR="RED">
<DL>
<OL TYPE="I">
<di><b>INPUT DEVICE</b></di>
<li> keyboard </li>
<li>mouse</li>
<li>scanner</li>
<li>joystic</li>
</dl>
</OL>
<dl>
<OL TYPE="1">
<di><b>out put device</b></di>
<li>printers</li>
<li>plooters</li>
<li>inkjet </li>
</dl>
</OL>
</body>
<html>