2022.2

Table Of Contents
1. OntheResourcespane,expandtheWebcontext,right-clickthesectionandclickProperties.
2. EnterthePage Title.Thecontentsofthisfieldwillgointhe<title>HTMLtag.(Nameisthename
ofthesectionintheWebcontext;thishasnoeffectonoutput.)
3. AddaShortcut Iconbyenteringthepathtothefavicon.icofile,forinstanceimages/favicon.ico.
Tip: IfavalidfaviconimageisdraggedtotheWebsection,itwillautomaticallybesetasa
shortcuticon.
4. TheMeta Information Grouplistsall<meta>tagsthatwillbeaddedtotheheaderoftheHTML
filegeneratedintheoutput.ClicktheAddbuttontoaddanew<meta>tagtothelist.Thenyou
canselectthetypeof<meta>tag,whichiseithernameorhttp-equiv,andenterthevalue(fora
name-typemetatag)orthecontent.Formoreinformationon<meta>tags,seeW3Schools-
HTMLmetatag.
Adding information to the <head> via a script
WhengeneratingWeboutput,theDesignerautomaticallyaddstheincludedresourcestothe<head>.
Toaddothertagstothe<head>,suchasa<base>tagtosetadefaultbaseURL/targetforallrelative
URLsinadocument,youneedtowriteascript.Ifyouarenotfamiliarwithscripts,see"Writingyour
ownscripts"onpage808foranexplanationofhowscriptswork.
1. Createascript:ontheScriptspaneatthebottomleft,clickNew.Anewscriptappearsinthelist.
Double-clickonittoopenit.
2. Changethenameofthescript,sothatitreflectswhatthescriptdoes.
Note: Scriptscanonlyhavethesamenamewhentheyarenotinthesamefolder.
3. ChoosetheoptionSelectorandintheSelectorfield,typehead.
4. Writeascriptthatappendsanelementtothe<head>ofthewebpage.
Example: Thefollowingscriptaddsa<base>elementtotheheadofawebpage.
results.append("<basehref='https://www.w3schools.com/images/'target='_blank'>");
Forms
WebtemplatescancontainForms.CaptureOnTheGotemplatesalwayscontainaForm.
Tip: TocreateaCaptureOnTheGotemplate,preferablyuseaTemplateWizard(see"Capture
OnTheGotemplatewizards"onpage525).TheWizarddoesn'tjustaddtheform,italsoaddsthe
Page 502