2022.2

Table Of Contents
wouldproduceinvalidHTMLthefinalresultmaybedifferentthanexpected.Forexample,
whenyouinsertaDivintoaparagraph,theparagraphgetssplitintwo.Thismeansyou
endupwithtwoparagraphswiththeDivinbetween.
Foralistoflinkstothedifferenttypesofelements,see"Elementtypes"onpage170.
Selecting an element
Whenanelementisselected,theAttributespaneshowstheattributesofthatelement,andtheStyles
pane,nexttotheAttributespane,showswhichstylesareappliedtoit.
Toselectanelementinthecontent,youcanofcourseclickonit,butthisisn'talwaysaseasyasit
seems,especiallywhentheelementhaselementsinsideit.
Tip: ClicktheEdgesbuttononthetoolbartemporarilyaddsaframetocertainelementsonthe
Designtab.ThesewillnotPrintoroutput.
Therearetwomorewaystoselectanelementinthecontent:
l
UsingtheBreadcrumbsatthetopoftheworkspace.
BreadcrumbsshowtheHTMLtagoftheclickedelement,aswellastheHTMLtagsof'parentele-
ments':elementsinsideofwhichtheclickedelementislocated.Theclickedelementisattheend
oftheline.
ElementswithclassesorIDsshowthesedetailsnexttothem,forinstancediv #contents >
ol.salesitems > li ~contents.
ClickanyoftheelementsintheBreadcrumbstoselectthatelement.Ifanelementisselectedin
theBreadcrumbsandtheBackspacekeyispressed,thatelementisdeleted.
Click~contentstoselectthecontentsoftheelement.Thiswayyoumay,forexample,quickly
changethetextofahyperlink.
l
UsingtheOutlinepane.YoucanfindthispanenexttotheResourcespane.Itdisplaysatree
viewoftheelementsinthefile.Clickanelementinthetreeviewtoselectit.
Deleting an element
Todeleteanelement,selectit-asdescribedabove-andpresstheDeletekey.
Ifthedeletedelementwastargetedbyascript,youwillbeaskedifyouwanttodeletethescriptaswell.
Page 174