Sei sulla pagina 1di 10

q.1 to Create a form in html.

ANSWER:
<HTML>
<HEAD>
<title> informations </title>
</HEAD>
<BODY>
<FORM method = "post">
<b>FIRST NAME:</b>
<INPUT type="text" id="firstname"><br>
<P><B>LAST NAME:</B>
<INPUT type="text" id="lastname"><br>
<P><B>EMAIL:</B>
<INPUT type="text" id="email"><br>
<P><B>SEX:</B></LABEL>
<INPUT type="radio" name="sex" value="MALE">MALE
<INPUT type="radio" name="sex"
value="FEMALE">FEMALE<BR>
<P><B>HOBBIES:</B>
<INPUT type="checkbox" name="hobbies"
value="PAINTING">PAINTING
<INPUT type="checkbox" name="hobbies"
value="READING">READING
<INPUT type="checkbox" name="hobbies"
value="MUSIC">MUSIC
<INPUT type="checkbox" name="hobbies"
value="SKETCHING">SKETCHING
<BR>
<P><B>COMMENT:</B>
<BR>
<TEXTAREA NAME="comment" ROWS=6
COLS=40></TEXTAREA>
<BR>
<INPUT type="submit" value="SEND">
<INPUT type="reset">
</P>
</FORM>
</BODY>
</HTML>
q.2 to create table in html.

ANSWER:
<html>
<head>
<title> PSK </title>
</head>
<body>
<table border = 2 HEIGHT=500, WIDTH=500>
<tr>
<td> CLASS </td>
<td> NAME </td>
<td> ROLLNO </td>
<td> ADDRESS </td>
<td> PHONE </td>
</tr>
<tr>
<td> 12</td>
<td> AAKASH </td>
<td> 01 </td>
<td> ANKLESHWAR </td>
<td> 9726277641 </td>
</tr>
<tr>
<td> 12 </td>
<td> ASHMA </td>
<td> 02 </td>
<td> KHAROD </td>
<td> 9844522775 </td>
</tr>
<tr>
<td> 12 </td>
<td> DIPANSHI </td>
<td> 03 </td>
<td> KOSAMBA </td>
<td> 9032712889 </td>
</tr>
<tr>
<td> 12 </td>
<td> FAIZA</td>
<td> 04</td>
<td> KOSAMBA </td>
<td> 8832465780 </td>
</tr>
<td> 12 </td>
<td> ZAINAB </td>
<td> 05 </td>
<td> KOSAMBA </td>
<td> 9726216996 </td>
<tr>
</tr>
</table>
</body>
</html>
QUESTION 3: DESIGN A HTML WEBPAGE.

<HTML>
<HEAD>
<TITLE> Computer Viruses</TITLE>
</HEAD>
<BODY BGCOLOR= #00ffff Topmargin=40
leftmargin=40>
<BASEFONT SIZE=3 FACE="Arial">
<H1> What is Computer Virus?</H1>
<p align=left> A <b>virus</b> is basically an
<i>executable file</i> that is designed such that it is
able to infect documents, has ability to survive by
<u>replicating</u> itself.
<br> Usually to avoid detection, a virus disguises itself
as a legitimate program that a user would not normally
suspect to be virus. </p>
<H2> Whar Virus can do? </H2> <p> <font size=5
color= #ff0000 >Viruses </font>
are designed to corrupt or delete data on the hard disk,
i.e. on the FAT (File Allocation Table).</p>
<H2> Types of Virus </H2> <hr size=6 width=100%
noshade> <Font color= Maroon> <p> Boot Sector
Viruses </p>
<p> File or Program Viruses</p>
<a href="http://www.google.com/" >
<font color="#ffff00" size=3> Get more on
Google.com</font></a>
</BODY>
</HTML>

Potrebbero piacerti anche