/Users/andrea/_magisterarbeit/korpus/clean/trainkorpus/26/file17.html NN ----------------------------------------- : BML NP Home NP . SENT BML NP Tutorial JJ BML NP Tutorial NN In IN this DT section NN I PP will MD attempt VV to TO walk VV you PP through IN the DT basics NNS of IN creating VVG a DT very RB simple JJ BML NP document NN and CC hopefully RB give VV you PP a DT glimpse NN of IN BML's NP power NN and CC flexibility NN . SENT The DT goal NN of IN this DT all RB is VBZ for IN you PP to TO learn VV how WRB to TO become VV lazier JJR and CC have VHP your PP$ website NN become VV cooler JJR at IN the DT same JJ time NN . SENT Stick VV with IN me PP and CC re IN read VVN sections NNS if IN they're NN hard JJ to TO understand VV because IN I've NP written VVN them PP terribly RB . SENT . SENT Here RB we PP go VVP . SENT . SENT . SENT First RB off RB , , any DT HTML NP document NN is VBZ a DT valid JJ BML NP document NN . SENT Once RB you PP have VHP BML NN installed VVN on IN your PP$ webserver NN , , you PP could MD potentially RB rename VV all PDT your PP$ documents NNS to TO BML NP and CC leave VV it PP at IN that DT , , but CC you PP wouldn't NN be VB harnessing VVG any DT of IN BML's NP usefulness NN . SENT However RB , , that's NNS what WP you PP should MD do VV to TO start VV off RP . SENT Let's NNS pretend VV you PP already RB have VHP a DT pretty RB well RB designed VVN site NN and CC the DT look NN of IN it PP all RB is VBZ pretty RB much RB consistent JJ throughout IN . SENT However RB , , you PP want VVP to TO make VV a DT change NN to TO something NN color NN , , structure NN , , layout NN , , whatever JJ . SENT Do VVP you PP want VVP to TO go VV and CC modify VV every DT single JJ page NN . SENT Not RB really RB . SENT This DT is VBZ where WRB BML NP gets VVZ really RB useful JJ . SENT However RB , , first RB we PP must MD define VV our PP$ document NN in IN terms NNS of IN BML NP blocks NNS , , not RB gobs VVZ of IN HTML NP tags NNS . SENT Here's JJ our PP$ document NN to TO start VV with IN . SENT . SENT . SENT HTML NP HEAD NN TITLE NN Iguana NN Recipes NNS TITLE NN HEAD NN BODY NN BGCOLOR NP DDDDFF NP TEXT NN 000000 CD LINK NN 009900 CD VLINK NP FFC NP 000 CD P NN ALIGN VV CENTER NN FONT NN SIZE NN 3 CD FACE NN Arial JJ COLOR NN FF NP 0000 CD Iguana NN Recipes NNS FONT NN P NN HR NP P NN FONT NN SIZE NN 1 CD B NP Intro NN B NP FONT NN BR NP Do VVP you PP like IN iguanas NNS . SENT If IN so RB , , you PP should MD consider VV the DT following VVG recipes NNS on IN how WRB to TO cook VV iguanas NNS into IN a DT tasty JJ meal NN . SENT . SENT . SENT P NN FONT NN SIZE NN 1 CD B NP Appetizers NNS B NP FONT NN BR NP Iguana NN legs NNS , , iguana NN eyeballs NNS , , it's NNS food NN a DT whole JJ family NN can MD enjoy VV . SENT BODY NN HTML NP This DT sample NN document NN appears VVZ to TO be VB a DT fairly RB simple JJ page NN , , entitled VVN Iguana NN Recipes NNS . SENT To TO begin VV , , there EX is VBZ some DT large JJ centered VVN text NN with IN the DT title NN of IN the DT page NN which WDT also RB appears VVZ in IN the DT TITLE NN in IN the DT HEAD NN section NN . SENT After IN that IN there EX are VBP two CD headings NNS , , Intro NN and CC Appetizers NNS , , both CC with IN text NN under IN them PP . SENT One CD of IN the DT main JJ ideas NNS of IN BML NP is VBZ to TO cut VV down RP on IN repetition NN by IN shoving VVG commonly RB used VVN stuff NN into IN templates NNS , , called VVN blocks NNS . SENT The DT block NN definitions NNS get VVP stored VVN in IN one CD or CC more JJR . SENT look NN files NNS . SENT Simple JJ sites NNS , , and CC new JJ sites NNS using VVG BML NP will MD only RB use VV the DT global JJ . SENT look NN file NN . SENT The DT first JJ thing NN we PP need VVP to TO do VV to TO begin VV simplifying VVG the DT HTML NP document NN above RB is VBZ to TO identify VV parts NNS which WDT are VBP repitious JJ and CC define VV BML NP blocks NNS for IN them PP . SENT The DT first JJ thing NN I PP notice VVP is VBZ that IN the DT heading VVG code NN , , for IN Intro NN and CC Appetizers NNS , , is VBZ used VVN twice RB . SENT Let's NNS define VV a DT block NN for IN that DT named VVN , , say VVP , , H NP 1 CD . SENT Note NN that IN this DT name NN has VHZ nothing NN to TO do VV with IN the DT HTML NP tag NN H NP 1 CD , , I PP just RB use VVP the DT name NN often RB for IN its PP$ shortness NN and CC because IN there EX are VBP often RB different JJ levels NNS of IN headings NNS and CC numbering VVG them PP is VBZ much RB easier RBR than IN having VHG a DT bunch NN of IN different JJ heading VVG names NNS to TO remember VV . SENT Anyway RB , , here's NNS the DT beginning NN of IN our PP$ global JJ . SENT look NN file NN . SENT H NP 1 CD D NP P NN FONT NN SIZE NN 1 CD B NP DATA NNS B NP FONT NN Let's NP look NN at IN this DT piece NN by IN piece NN . SENT First RB off RB , , the DT H NP 1 CD is VBZ the DT name NN of IN our PP$ block NN . SENT The DT mark NN means VVZ that IN this DT block NN definition NN is VBZ just RB a DT single JJ line NN definition NN and CC ends VVZ at IN the DT end NN of IN the DT line NN . SENT The DT D NP identifies VVZ what WP type NN of IN block NN this DT is VBZ . SENT There EX are VBP different JJ types NNS of IN blocks NNS that WDT are VBP commonly RB used VVN which WDT will MD be VB discussed VVN as IN we PP use VVP them PP . SENT The DT D NP block NN is VBZ a DT simple JJ block NN in IN which WDT there EX is VBZ only RB one CD property NN being VBG passed VVN into IN the DT block NN , , named VVN DATA NNS . SENT This DT type NN of IN block NN is VBZ the DT default NN . SENT I NP could've NN left VVD it PP unspecified JJ for IN this DT introductory JJ purpose NN , , but CC it's JJ good JJ practice NN to TO always RB tack VV it PP on RP . SENT Everything NN after IN the DT block NN identifier NN is VBZ the DT template NN information NN , , with IN the DT double JJ percent NN signs NNS around IN variable JJ names NNS . SENT The DT DATA NNS will MD later RBR become VV whatever WDT heading NN text NN we PP pass VVP it PP . SENT Now RB , , back RB to TO our PP$ BML NP document NN , , which WDT I've NP changed VVD to TO now RB utilize VV our PP$ newly RB formed VVN BML NP block NN H NP 1 CD . SENT HTML NP HEAD NN TITLE NN Iguana NN Recipes NNS TITLE NN HEAD NN BODY NN BGCOLOR NP DDDDFF NP TEXT NN 000000 CD LINK NN 009900 CD VLINK NP FFC NP 000 CD P NN ALIGN VV CENTER NN FONT NN SIZE NN 3 CD FACE NN Arial JJ COLOR NN FF NP 0000 CD Iguana NN Recipes NNS FONT NN P NN HR NP H NP 1 CD Intro NN H NP 1 CD BR NP Do VV you PP like IN iguanas NNS . SENT If IN so RB , , you PP should MD consider VV the DT following VVG recipes NNS on IN how WRB to TO cook VV iguanas NNS into IN a DT tasty JJ meal NN . SENT . SENT . SENT H NN 1 CD Appetizers NNS H NP 1 CD BR NP Iguana NN legs NNS , , iguana NN eyeballs NNS , , it's NNS food NN a DT whole JJ family NN can MD enjoy VV . SENT BODY NN HTML NP You'll NP see VVP that IN where WRB there RB used VVN to TO be VB an DT ugly JJ mess NN of IN HTML NP is VBZ now RB the DT clean JJ BML NP blocks NNS . SENT The DT H NP 1 CD begins VVZ the DT H NP 1 CD block NN and CC the DT H NP 1 CD ends VVZ the DT H NP 1 CD block NN . SENT Because IN this DT is VBZ block NN of IN type NN D NP , , everything NN in IN between IN the DT starting VVG and CC ending VVG marks NNS is VBZ passed VVN to TO the DT template NN as IN a DT single JJ variable NN , , named VVN DATA NNS . SENT Now RB let's NNS get VVP into IN something NN a DT wee JJ bit NN more RBR complicated JJ . SENT . SENT . SENT full JJ blocks NNS . SENT Full JJ blocks NNS , , of IN type NN F NN can MD have VH different JJ variables NNS passed VVN into IN the DT template NN . SENT The DT most RBS common JJ use NN of IN a DT full JJ block NN is VBZ to TO make VV your PP$ PAGE NN definition NN . SENT Most JJS people NNS use VVP a DT PAGE NN block NN to TO avoid VV doing VVG the DT structure NN of IN their PP$ whole JJ page NN . SENT If IN you PP think VVP about IN it PP , , the DT only JJ two CD really RB necessary JJ variables NNS that IN change NN between IN pages NNS and CC should MD be VB a DT part NN of IN the DT PAGE NN block NN are VBP the DT title NN and CC the DT body NN . SENT The DT title NN for IN our PP$ sample NN page NN would MD be VB Iguana NN Recipes NNS and CC the DT body NN would MD be VB everything NN from IN the DT Intro NN heading VVG to TO the DT end NN of IN the DT Appetizers NNS section NN . SENT Again RB , , my PP$ referring VVG to TO BODY NN as IN a DT BML NP block NN variable NN has VHZ nothing NN to TO do VV with IN an DT HTML NP BODY NN tag NN . SENT Actually RB , , we're NNS going VVG to TO hide VV the DT whole JJ HTML NP BODY NN inside IN our PP$ block NN definition NN . SENT Let's NNS also RB include VVP the DT large JJ centered VVN text NN into IN our PP$ BODY NN block NN , , since IN it's NNS always RB going VVG to TO be VB the DT same JJ , , just RB with IN the DT page's NNS title NN inserted VVD , , which WDT we're NNS already RB going VVG to TO pass VV . SENT Instead RB of IN a DT single JJ line NN block NN definition NN like IN our PP$ H NP 1 CD block NN , , we're RB going VVG to TO have VH to TO use VV a DT multi NNS line NN definition NN for IN this DT block NN . SENT Again RB , , we PP return VVP to TO our PP$ global JJ . SENT look VV file VV and CC add VV the DT following NN . SENT . SENT . SENT PAGE NN F NN HTML NP HEAD NN TITLE NN TITLE NN TITLE NN HEAD NN BODY NN BGCOLOR NP DDDDFF NP TEXT NN 000000 CD LINK NN 009900 CD VLINK NP FFC NP 000 CD P NN ALIGN VV CENTER NN FONT NN SIZE NN 3 CD FACE NN Arial JJ COLOR NN FF NP 0000 CD TITLE NN FONT NN P NN HR NP BODY NN BODY NN HTML NP PAGE NN Only RB a DT few JJ different JJ things NNS to TO note VV from IN our PP$ last JJ block NN definition NN . SENT the DT PAGE NN line NN starts VVZ a DT multi NNS line NN definition NN and CC the DT PAGE NN ends VVZ it PP . SENT The DT F NN identifier NN means VVZ there EX will MD be VB multiple JJ variables NNS passed VVN into IN this DT block NN . SENT Note NN that IN the DT F NN goes VVZ at IN the DT very JJ beginning NN of IN the DT first JJ line NN of IN the DT definition NN , , not RB right RB after IN the DT mark NN . SENT Now RB , , let's NNS confuse VV you PP some DT more JJR and CC show VV you PP what WP the DT new JJ BML NP document NN will MD look VV like IN . SENT . SENT . SENT . SENT PAGE NN TITLE NN Iguana NN Recipes NNS BODY NN H NP 1 CD Intro NN H NP 1 CD BR NP Do VV you PP like IN iguanas NNS . SENT If IN so RB , , you PP should MD consider VV the DT following VVG recipes NNS on IN how WRB to TO cook VV iguanas NNS into IN a DT tasty JJ meal NN . SENT . SENT . SENT H NN 1 CD Appetizers NNS H NP 1 CD BR NP Iguana NN legs NNS , , iguana NN eyeballs NNS , , it's NNS food NN a DT whole JJ family NN can MD enjoy VV . SENT BODY NN PAGE NN What WP . SENT . SENT . SENT It PP looks VVZ like IN a DT BML NP document NN and CC a DT block NN definition NN . SENT look NN file NN . SENT Well UH , , yes UH , , it PP kinda RB does VVZ . SENT The DT method NN of IN specifying VVG single JJ line NN and CC multi NNS line NN elements NNS is VBZ the DT same JJ , , to TO make VV it PP a DT little RB easier JJR to TO get VV a DT grasp NN of IN . SENT What WP is VBZ happening VVG here RB is VBZ that IN we PP really RB just RB have VH one CD block NN , , the DT PAGE NN block NN . SENT Inside IN that DT block NN are VBP two CD variables NNS , , the DT single JJ line NN TITLE NN variable NN and CC the DT multi NNS line NN BODY NN variable NN . SENT From IN here RB , , you're NNS basically RB done VVN . SENT You PP could MD create VV a DT paragraph NN block NN named VVN P NN to TO be VB a DT wrapper NN around IN your PP$ paragraphs NNS , , but CC that's NNS not RB absolutely RB necessary JJ . SENT Remember VV , , BML NP is VBZ all RB about IN being VBG lazy JJ . SENT If IN you PP think VVP a DT block NN will MD help VV you PP be VB lazy JJ in IN the DT long JJ run NN , , make VV it PP . SENT If IN you PP think VVP it PP will MD cause VV unwanted JJ complications NNS , , who WP cares VVZ . SENT This DT tutorial NN is VBZ only RB the DT start NN , , there EX is VBZ a DT lot NN of IN stuff NN you PP can MD do VV with IN BML NP . SENT Read VV the DT other JJ sections NNS for IN information NN on IN other JJ features NNS and CC a DT more RBR detailed JJ look NN at IN the DT stuff NN you've NN already RB learned VVD . SENT Just RB have VHP fun NN with IN it PP . SENT Return NN to TO BML NP Home NP . SENT