The following editor will bring you a comprehensive understanding of HTML Form form elements. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look.
is as follows:
XML/ HTML CodeCopy content to clipboard
html xmlns="http://www.w3.org/1999/xhtml ">
head>
title>Registration formtitle >
head> <
body> ##<
action="DoFormAction.htm"> < fieldset
style> Border--> Registerlegend> ## ##cellspacing=
cellpadding="6px" border="1px" bordercolor="black"
alignwidth="600px "> ## Name:td>
<td><input type="text" size="20" style="width:150px" />td>
tr>
<tr>
<td align="right">密码:td>
<td><input type="password" size="20" style="width:150px" />td>
tr>
<tr>
<td align="right">确认密码:td>
<td><input type="password" size="20" style="width:150px" />td>
tr>
<tr>
:td> ## #input type="radio" checked="checked" name=
"sex1"="Male" />Male input
"radio" name="sex1" value="女" />女 ## ##> ## #td align="right">
Gender (you can click on the text to select):td> ## & LT; FieldSet STYLE = "Width: 150px" ## & GT # & lt;!-Form frame, you can also set the width through CSS-& gt; ## & lt
Please select your genderlegend>
<input type="radio" checked="checked" name="sex2" value="男" id="man" />
<label for="man">男label>
<input type="radio" name="sex2" value="女" id="woman" />
<label for="woman">女label>
fieldset>
td>
tr>
<tr>
<td align="right">城市:td>
<td>
<select name="city">
<option value="北京">北京option>
## & lt; Option ##Value = "Shenzhen" & GT option>
="Shanghai">上海option> ## <option
"Nanchang" selected="selected">Nanchangoption> < !--Nanchang is selected by default--> ##
> ## #>
City area:td>
td> ## #name
> label="Beijing"
><option value="Chaoyang District">Chaoyang Districtoption>
<option value="Haidian District"> Haidian Districtoption##>
value="Other areas">Other areasoption > <optgroup label
=> <
value="东湖区">东湖区option>
## ##value="西湖区">西湖区option> ## <
option="青山湖区"> ;青山湖区option> #optgroup>
### tr> > ##
td>
through ##select name="target"
sizemultiple ="multiple"> <option value="Peer" selected="selected"> ;PEER
> ## ##option value="Ordinary friends">Ordinary friendsoption > ##
##>option> ## select> ## ##> ## #td
="right">Hobbies:td> ##
through ##"love" value="Football" />Football # <input type="checkbox" name
=value ="Blue Ball" />Blue Ball <input type="checkbox" name
=value="Table tennis " />Table Tennis td> ## ##<
> ## ##align="right"
td>
="file" name="myPic"
/>td> >
Introduction:td> ##
##textarea rows="5" cols
=> ##
/tr> ; #colspan="2"
>type="submit"
value/>
<type="reset" value=
"clear " #"image"="../images/btnreg.png" onclick="alert('hello')"
/>