2022.2

Table Of Contents
Editing HTML
Whenyouaddelements,suchastext,imagesoratable,tothecontentofatemplate,youareactually
constructinganHTMLfile.
Toseethis,toggletotheDesigntabintheworkspace.Clickanywhereinthecontent.Takealookat
thebreadcrumbsatthetopoftheworkspaceorselecttheOutlinepane.Thebreadcrumbsshowthe
HTMLtagoftheclickedelement,aswellastheHTMLtagsofotherelementstowhichtheclickedele-
mentbelongs.Theclickedelementisattheendoftheline.
ToedittheHTMLtextdirectly:
l
Intheworkspace,toggletotheSourcetab.
OnthistabyoucanviewandeditthecontentofthetemplateintheformofplaintextwithHTMLtags
(notetheanglebrackets:<>).YoumayaddandeditthetextandtheHTMLtags,classes,ID’sand
otherattributes.
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708)andstyling(see"Styling
templateswithCSSfiles"onpage672).
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570)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"above).Whichpropertiesanelementhas,dependsontheelement
itself.Animage,forexample,hasatleastfourattributes:src(theimage'sURL),alt(alternatetext),
widthandheight.TheseattributesarevisibleontheAttributespanewhenyouclickanimageinthe
content.
Page 568