Page 39 - PortGPT_V2.1_C8_Flipbook
P. 39
PASSWORD: This value is used to create a password field. A password field is just similar
to a text box field. The only difference is that the text entered in the password field will
not readable because it appears in the form of stars symbol.
• NAME: This attribute is used to specify the identity of the field on the web page.
• VALUE: This attribute is used to specify the default value of the field.
The syntax of the <INPUT> tag is as follows:
<INPUT ATTRIBUTE="VALUE" NAME="VALUE">
Let us create a web page containing login form to accept the user name and password from the user.
Code to create the Form.html is as follows:
<HTML>
<HEAD>
<TITLE> Login Form </TITLE>
</HEAD>
<BODY BGCOLOR="lightyellow">
<FORM>
User Name : <INPUT TYPE="TEXT" NAME="USER NAME"> <BR>
Password : <INPUT TYPE="PASSWORD" NAME="PASSWORD"><BR>
<INPUT TYPE="CHECKBOX"> Remember me next time
<BR>
<INPUT TYPE="BUTTON" VALUE="Log IN">
</FORM>
</BODY>
</HTML>
Output
The <TEXTAREA> Tag
The <TEXTAREA> tag is used to create a multi-line text box that can accept long text values. We
can specify the number of rows and columns we want in text area by using the ROWS and COLS
attributes of the <TEXTAREA> tag. The syntax of the <TEXTAREA> tag is as follows:
<TEXTAREA ROWS="2" COLS="70">
HTML Frames and Forms 37

