2022.2

Table Of Contents
TolearnmoreaboutHTML,seeforexamplehttps://developer.mozilla.org/en-US/-
docs/Web/Guide/HTML/Introductionandhttp://www.w3schools.com/html/default.asp.
Manyvideocoursesandhands-oncoursesaboutHTML(andCSS)areofferedontheInternetaswell,
someforfree.Go,forexample,towww.codeschool.comorwww.codeacademy.comandlookforHTML
(andCSS)courses.
Attributes
IDandclass
EveryelementinthecontentofatemplatecanhaveanIDandaclass.ID'sandclassesareparticularly
usefulwithregardtovariabledata(see"Personalizingcontent"onpage297)andstyling(see"Styling
templateswithCSSfiles"onpage261).
YoucanspecifyanIDand/orclasswhenyouaddtheelementtothecontent.
ToaddanIDand/orclasstoanelementthathasalreadybeenaddedtoatemplate,selecttheelement
(see"Selectinganelement"onpage174)andtypeanIDand/oraclassintherespectivefieldsonthe
Attributespaneatthetopright.
Note: EachIDshouldbeunique.AnIDcanbeusedonceineachsection.
Otherattributes
ApartfromtheIDandclass,elementscanhaveavaryingnumberofproperties,or'attributes'asthey're
calledinHTML(see"EditingHTML"onthepreviouspage).Whichpropertiesanelementhas,depends
ontheelementitself.Animage,forexample,hasatleastfourattributes:src(theimage'sURL),alt
(alternatetext),widthandheight.TheseattributesarevisibleontheAttributespanewhenyouclick
animageinthecontent.
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415and"Taggingelementsfortranslation"
onpage417.
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314.
Page 172