2022.2

Table Of Contents
Note: TheIDwillbecopiedtothenameattributeoftheelement.Thenameattributeiswhat
identifiesthefieldtothereceivingserver-sidescript.Tochangethename,selecttheele-
mentafterinsertingitandtypethenewnameontheAttributespane.
ID'sandclassesarealsousefulwithregardtovariabledata(see"Personalizingcontent"on
page708)andstyling(see"StylingtemplateswithCSSfiles"onpage672).
2. Typealabel,orchooseNolabelunderStyle,toomitthelabel.(ForLabelelementsthereareno
otheroptionstobeset.)
3. Ifapplicable,chooseastyleforthelabel(forthelabelofaCheckbox,forexample,youcan'tseta
style).
l
Wrap input with labelplacestheinputelementinsidetheLabelelement.
l
Attach label to inputtiesthelabeltotheinputelementusingtheforattributeofthe
Labelelement.
l
Use label as placeholderinsertsthegivenlabeltextintheplaceholderattributeofthe
field.
l
No styleomitsthelabelaltogether.
Note: Thefirsttwolabelstylesensurethatwhentheuserclicksthelabel,theinput
elementgetsthefocus.
4. Thefollowingoptionsareonlyavailableforspecificelements:
l
ForaText Areayoucanspecifyanumber of rows.
l
ForaRadio Button,thesubmit nameindicatestowhichRadioButtonGrouptheRadio
Buttonbelongs.
l
ForaButton,Checkbox,Hidden Field,andRadio Buttonyoucansetthevalue.The
valueisassociatedwiththeinputandwillbesentonsubmittingtheForm.
Tip: ForotherFormelements,youcansetthedefault valuetobethevalueofa
fieldintherecordset;see"Specifyingadefaultvalue"onpage510.
l
ForaCheckboxorRadio Buttonyoucancheckcheckedorselectedrespectivelyforthe
elementtoinitiallybechecked/selectedwhenthewebpageisshown.
l
ForaButton,youcansetthebutton type:
Page 508