Friday, April 8, 2011

Text Fields in HTML

The function of the text fields to enter a single line of text. This form are one of the most common fields we see on the websites. like search box, signing an account, and other types of text field that can apply to the websites.

Source Code:

<!DOCTYPE html>

<html>
<head>
<title>Text Fields</title>
</head>

<body>
<b>Text Field:</b><br/>

<p>
<input type= "text" name="textfield" size= "30">
</p>

</body>
</html>

The Size option denoted the width of the field. the maxlength option denoted the maximum length of the field like "30" is an example of the maxlength.

The Name setting add an internal name to the fields so the program that handles the form can identify the fields.

Output:






This output of the text field code. Now you can try by your own.

2 comments:

  1. thats cool!! i will use this to my practicing a web design.

    ReplyDelete
  2. really!! i hope you will continue reading my blog and i will also continue making a new topic.
    thanks RJ..

    ReplyDelete