2022.2

Table Of Contents
Foreachtypeofelement,asmallselectionofattributesisvisibleontheAttributespaneatthetop
right.
Inamultilingualtemplate,theproprietarydata-translateattributemarksanelementfortranslation.
Formoreinformationsee"Translatingtemplates"onpage856and"Taggingelementsfortranslation"
onpage857.
Changingattributesviascript
Manyattributescanbechangedviatheuserinterface.Anotherwaytochangeattributesisbyusinga
script.
AnyoftheScriptWizardscanproduceascriptthatchangesanattributeofanHTMLelement.Setthe
OptionsintheScriptWizardtoAttribute,tooutputthescript'sresultstothevalueofaspecificattrib-
ute.See"UsingtheTextScriptWizard"onpage729.
Incode,youcanchangeanelement'sattributeusingthefunctionattr();see"Writingyourown
scripts"onpage808and"StandardScriptAPI"onpage1169.
Inserting an element
Toinsertanelementinasection:
1. Navigatetowhereyouwanttoinserttheelement,usingthearrowkeys,themouse,theBread-
crumbs(see"Selectinganelement"onthefacingpage)ortheOutlinepane.
2. Clicktherespectivetoolbarbutton.Alternatively,clicktheelementontheInsertmenu.
3. AddanIDand/oraclass.ID'sandclassesareparticularlyusefulwithregardtovariabledata(see
"Personalizingcontent"onpage708)andstyling(see"StylingtemplateswithCSSfiles"on
page672).
Note: DonotgiveanelementtheID'pages'ortheclassname'dynamic'.Theseare
reservedwords.UsingthemasanIDorclassnameleadstoundesirableeffects.
4. UsetheLocationdrop-down(ifavailable)toselectwheretoinserttheelement.
l
At cursor positioninsertsitwherethecursorislocatedinthetemplate.
l
Before elementinsertsitbeforetheHTMLelementinwhichthecursoriscurrentlyloc-
ated.Forexampleifthecursoriswithinaparagraph,theinsertionpointwillbebeforethe
<p>tag.*
l
After start taginsertsitwithinthecurrentHTMLelement,atthebeginning,justafterthe
starttag.*
l
Before end taginsertsitwithinthecurrentHTMLelement,attheend,justbeforetheend
tag.*
Page 569