You are on page 1of 2

BR»

CBODYpGCOLOR=MIjahtyellow"> NAME">
NAMME"PASSWORD"><BR>
NAME-"USER
</HEAD>
wwn#
TYPE="EX)
time
TYE "PASSWCRD" next
<IPUT
<FORN TYPEuRememberme
Name
User <INPUT
TYPE-"CIECKBOX"
:
Password
<INPUT
<INPUTTYPS-"RUTTON"
CBR>

VALUE"log IN">

</FORY> </BODY>
OlCAnCocueuFormS20us

</HTML

CierNa
Pat

<TEXTAREA>TAG accept logg text values.We cangL


D THE textt box that can
is used to create a multiline
using the ROWS andCLos s
The <TEXTAREA> tag columns we want in text area by
the number of rows and the <TEXTAREA> tag is as follows:
TEXTAREA> tag. The syntax of
<TEXTAREA ROWS="2" COLS="70">
The code to r
registration form by using form elements of HTML,
Let us create a student
registration form is as follows:
<!DOCTYPE html>

<HIML>

<HEAD>

<TITLE> Form </TITLE>


</HBAD>
<BODY BGCOLOR="lightyellow" TEXT="blue">
<CENTER
<H1> Registration Form </Hl>
</CENTER>
CHRS
CFORM
Name : <INPUT
TYPE="TEXT"> <BR><BR>
Name: <INPUTTYPE=TEXT"> <BR><BR>
Father's
TYPE="TEXT"> <BR<BR>
Age in Years: <lNPUT
NAME-"gender">
Gender: <INPUT TYPE="RADIO" NAME="gender"> Male <iNPUT TYPE="RADIO"
Female <BR> <BR>
<TEXTAREA> <BR> BR>
Address: <TEXTAREA ROWS ="4" COLS = "80">
Hobbies: <BR>
<INPUT TYPE="CHECKBOX"> Playing Cricket <BR>
Music <BR>
<INPUT TYPE="CHECKBOX"> Listening to
<INPUT TYPE="CHECKBOX"> Reading Books <BR>
<BR> <BR>

Enroll for Class :

<SELECT>
<OPTION> Class 1
<OPTION> Class 2
<OPTION> Class 3

<OPTION> Class 4

<OPTION> Class 5
<OPTION> Class 6
<OPTION> Class 7

<OPTION> Class 8

</SELECT> Registratlon Form

<PR>

<BR>
<INPUT TYPE="SUBMIT"

VALUE="SUBMIT">
<INPUT TYPE-"RESET"

VALUE"RESET">

</EORM>

</BODY
</HTML>

#Forms in HTMLS 8

You might also like