34 lines
2.0 KiB
HTML
34 lines
2.0 KiB
HTML
|
<html><head>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body><hr style="width: 100%; height: 2px;"><a name="HTML"></a>HTML Form and
|
||
|
Widgets<br>
|
||
|
<br>
|
||
|
<b>Textfield :</b>
|
||
|
<form method="post" action="cgi.cgi">Enter your Name: <input name="yourName"><b><font color="#ff0000">text
|
||
|
field using </font><font color="#0000ff">default type=text</font></b>
|
||
|
<p>1. Enter your Address: <input name="yourAddress" size="50" maxlength="180" type="text"><b>text
|
||
|
field using <font color="#0000ff">SIZE</font> and <font color="#0000ff">MAXLENGTH</font></b> </p>
|
||
|
<p>2. Enter your City: <input name="yourCity" size="19" type="text">3.
|
||
|
Enter your State: <input name="yourState" size="2" maxlength="2" type="text">4.
|
||
|
Enter your Country: <input name="yourCountry" size="2" maxlength="2" value="US" type="text"><img src="TestPage_files/red_arrow_l.html" width="13" height="13"><b><font color="#ff0000">text
|
||
|
field using </font><font color="#0000ff">value</font></b> </p>
|
||
|
<p>5. Enter your Zip: <input name="yourZip" size="10" maxlength="10" type="text"> </p>
|
||
|
<p>6. What happens when a fixed-width font(the default) is used for a
|
||
|
one-byte
|
||
|
text input area, let's try it.. Enter one character: <input name="One-byte" size="1" maxlength="1" type="text"> <br>
|
||
|
</p>
|
||
|
<hr><b> CheckBox:</b>
|
||
|
<h2>What are your favorite pets?</h2>
|
||
|
<input name="bird" value="bird" type="checkbox">bird <br>
|
||
|
<input name="fish" value="fish" type="checkbox">fish <br>
|
||
|
<input name="wild" value="wild animal" type="checkbox">wild animal <br>
|
||
|
<hr width="100%"> <br>
|
||
|
<b>Radio Buttons:</b>
|
||
|
<h2>Would type of wine do you like?</h2>
|
||
|
<input name="wine" value="cabernet sauvignon" checked="checked" type="radio">cabernet
|
||
|
sauvignon <br>
|
||
|
<input name="wine" value="merlot" type="radio">merlot <br>
|
||
|
<input name="wine" value="nebbiolo" type="radio">nebbiolo <br>
|
||
|
<input name="wine" value="pinot noir" type="radio">pinot noir <br>
|
||
|
<input name="wine" value="none" type="radio">don't drink wine <br>
|
||
|
</form>
|
||
|
</body></html>
|