Change Font Size: Previous / Next / Directory List
10.6.1 HTML fieldset labels
Fieldset label - a division of the form
- Fieldset the label is paired to
<fieldset>began to</ fieldset>end - A form can have multiple
<fieldset>, <fieldset>for each of the teams, each a description of the content that can be used legend labels - Attribute:
- Common - general attributes
- Trackback Address: http://www.nt22.com/xhtml-html/tag_fieldset/
Example
<formAction"nt22.php"method= = ="nt22form" "post"user name and password:id><fieldset> <legend></ legend> <inputid="hiddenField"name="hiddenField"type=" hidden"value="hiddenvalue" />= <labelforUser:"username" /></ label> <inputtype"text"id= = ="username"name"nt22"/>"username"value= <labelfor=Password:"pass" /></ label> <inputtype"password"id= = ="pass"/>"pass"name</ fieldset> <fieldset> <legend>Sex:</ labelforlegend> < =F"boy" /></ label> <inputtype="radio"value="1" "sex"name id= = ="sex"/> <labelforF"girl" /></ label> <inputtype="radio"value="2"id="sex"name="sex"/> = <labelforconfidentiality"sex" /></ label> <inputtype="radio"value="3"id="sex"name="sex" /></ fieldset> <fieldset> <legend>My favorite:</ legend> = <labelforComputer"computer" /></ label> <inputtype="checkbox"value="1"id="fav"name="fav" />= <labelforTourism"trval" /></ label> <inputtype="checkbox"value="2"id="fav"name="fav"/> <labelfor"buy"=>shopping</ label> <inputtype"checkbox"value= = ="fav"name"3"id="fav"/> </ fieldset> <fieldset> <legend>right NT22 Tutorial views:</ legend> <labelfor"select"=>you feel NT22 Tutorial</ label> <selectsize"1"id= = ="select" "select"very comprehensive , goodname><option></ option> <option>generally like it, but also work hard to</ option> <option>a lot of problems, but can also</ option> </ select> </ fieldset> <fieldset> <legend> NT22Tutorial Programming Languages:</ legend> = <labelforNT22 Tutorial you want to learn the programming language"multipleselect" /></ label> <selectsize="10"multiple="multiple"id="multipleselect"name=XHTML"multipleselect" /><option></ option> <option>CSS</ option> <option>JAVASCRIPT</ option> <option>XML</ option> <option>PHP</ option> <option>C #</ option> <option>JAVA</ option> <option>C + +</ option> <option>PERL</ option> </ select> </ fieldset> <fieldset> <legend>I have to learn NT22 Tutorial:</ legend > <labelfor"WebDesign"=>Choose a NT22 Tutorial you want to learn most of</ label> <selectid="WebDesign" "WebDesign"name=>"client"<optgrouplabel=> <optionvalue="HTMLHTML" /></ option>"CSS"<optionvalue=>CSS</ option>"javascript"<optionvalue=>javascript</ option> </ optgroup> ="server"<optgrouplabeloptionvalue=>PHP<"PHP" /></ option>"ASP"<optionvalue=>ASP</ option>"JSP"<optionvalue=>JSP</ option> </ optgroup> ="database"<optgrouplabeloptionvalue=> <Access"Access" /></ option>"MySQL"<optionvalue=>MySQL</ option>"SQLServer"<optionvalue=>SQLServer</ option> </ optgroup> </ select> </ fieldset> <fieldset> <legend>personal information:</ legend> = <labelforpersonalized photo upload"myimage" /></ label> <inputtype="file"id="myimage"name="myimage"size="35"maxlength="255"/> = <labelforContact Us"contactus" /></ label><textareacols ="50"rows=id="10" "contactus" "contactus"name=>Rickie web@nt22.com< / textarea> </ fieldset> <fieldset> <legend>submitted:</ legend> <inputtype"submit"value= = ="submit"name"submit"id="submit"/> <inputtype="reset"value="reset"id="reset"name="reset"/> </ fieldset> </ form>
Examples of HTML fieldset labels
Note
- Legend content generally in the upper left corner
- Through legend to appear.
