1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html><head> </head>
<body>
<p>
Some text for the beginning.
<form action="foo.invalid" method="post">
The first form contains
<input type="text" value="a text input field" name="text1" />
<input type="text" value="and another one" name="text2" size="20" />,
<input type="password" value="a truncated password field" name="pass" size="20" />,
some text and a separator,
<hr />
a <input type="submit" value="button input" name="submit" />
and a
<button value="button element" name="submit">
fancy button element with a linebreak<br />
and an <img src="" alt="image" /> in it
</button>,
a <input type="reset" value="reset button" />
and a
<button type="button">
push button element
</button>,
two
<input type="image" value="image" name="submit" src="" alt="image submit buttons" />
<input type="image" value="image2" name="submit" src="" />,
two checkboxes:
<input type="checkbox" name="flag" value="yes" />
<input type="checkbox" name="flag2" value="yes" checked="checked" />,
a group of radio buttons:
<input type="radio" name="radio" value="1" checked="checked" />
<input type="radio" name="radio" value="2" />,
another one:
<input type="radio" name="radio2" value="1" />
<input type="radio" name="radio2" value="2" />
(with no preselected button),
a select list
<select name="select">
<option value="opt1">option1</option>
<option value="opt2"></option>
<option selected="selected">option3</option>
</select>
and another one with "multiple"
<select name="multiselect" multiple="multiple">
<option>option1</option>
<option selected="selected">option2</option>
<option selected="selected">option3</option>
</select>,
a
<textarea value="textarea" name="textarea" />,
a file input:
<input type="file" name="file" value="CVS/Entries">,
a hidden input:
<input type="hidden" name="hidden" value="invisible" />,
and finally
<p>
a paragraph with
<input type="text" value="another text input field" /> (which won't be submitted)
and
a nameless <input type="submit" />.
</p>
</form>
<form action="bar.invalid" method="post">
<input type="submit" value="a submit button" />
</form>
is all that makes up the second form.
</p>
<p>
There is also a
<form method="post">
from with no action but a
<input type="submit" value="submit button" name="irrelevant" />
</form>,
and finally a
<form action="" method="post">
form with an empty action and a
<input type="submit" value="submit button" name="irrelevant" />
</form>
</p>
</body>
</html>
|