mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
77 lines
1.9 KiB
HTML
77 lines
1.9 KiB
HTML
<html>
|
|
<head>
|
|
<title>Example 8</title>
|
|
<style>
|
|
INPUT#input1 {
|
|
font-size: large;
|
|
}
|
|
INPUT#input2 {
|
|
font-size: medium;
|
|
}
|
|
TEXTAREA#textarea1 {
|
|
width: 300px;
|
|
height: 120px;
|
|
font-size: large;
|
|
}
|
|
SELECT#select1 {
|
|
font-size: large;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<H1>Example 8: Forms</H1>
|
|
|
|
<BR>
|
|
<FORM METHOD="GET" ACTION="http://search.yahoo.com/bin/search" NAME="searchform">
|
|
<P> hey yahoo </P>
|
|
<INPUT TYPE="TEXT" NAME="p" SIZE=15 MAXLENGTH=80>
|
|
<INPUT TYPE="submit" VALUE="Search">
|
|
<INPUT TYPE="HIDDEN" NAME="a" VALUE="n">
|
|
</FORM>
|
|
<BR><BR>
|
|
<FORM METHOD="POST" ACTION="http://www.mcp.com/cgi-bin/post-query" NAME="echo">
|
|
password: <INPUT TYPE="PASSWORD"> <BR>
|
|
<textarea name=a rows=4 cols=10 value="a textarea">a textarea</textarea>
|
|
|
|
<textarea name=a id=textarea1 value="a textarea">another textarea
|
|
size, font set by css</textarea>
|
|
<BR><BR>
|
|
a checkbox: <input type=checkbox name=check1 checked>
|
|
<BR><BR>
|
|
<input type=radio name=group1> radio1
|
|
<BR>
|
|
<input type=radio name=group1 checked> radio2
|
|
<BR><BR>
|
|
<select name=select2 id=select1 size=4 multiple>
|
|
<option>option 1</option>
|
|
<option>option 2</option>
|
|
<option selected>option 3</option>
|
|
<option>option 4</option>
|
|
<option>option 5</option>
|
|
<option>option 6</option>
|
|
</select>
|
|
<select name=select1 size=2>
|
|
<option selected>option 1</option>
|
|
<option>option 2</option>
|
|
</select>
|
|
<select name=select3 size=1>
|
|
<option selected>option 1</option>
|
|
<option>option 2</option>
|
|
</select>
|
|
<BR><BR>
|
|
<input type=file size=20 name=file value=myfile> file content not being sent yet
|
|
<BR>
|
|
<input type=reset name=reset id=input2 value="RESET">
|
|
<input type=submit id=input1 name=submit value="SUBMIT">
|
|
<input type=image src=raptor.jpg width=50 height=50 name=imageSubmit> an image submit. For now, click twice.
|
|
</form>
|
|
<BR>
|
|
<BR>
|
|
Additional tests -
|
|
<A href=test8siz.html>sizing</A>,
|
|
<A href=test8sca.html>scalability</A>,
|
|
<A href=test8tab.html>tables(not working)</A>
|
|
</body>
|
|
</html>
|