Sothere's a bitof a warningwarningfortheclasstoday, especiallywhenyougotodofurtherresearchtolearnmoreaboutthesyntaxofhowtodesignthingsinHTML, there'vebeentwomajorversionsofHTMLoverthepast 20 years.
TherewasHTMLfour, andthere's nowHTMLfive.
What I'm goingtobeshowingyoutodayisverymuchintheoldHTMLformold, andthereasonisisbecause I feelthatthisisaneasierwaytoteachHTMLtwonewstudents.
Thisiskindofoneofthingsthatscrewsupoldtimerslikemebecausebackinthedayarebackinthedaywhen I learnedHTML.
Wheneveryou'recreatingtags, youcapitalizethosetagsandeasywayofunderstandingwherethetagswereasyoucapitalizedallthelettersand a tag, andsoyoucouldveryeasilybeabletoseethaton a pig.
Ifyoudon't put a tagin, itwillnotberecognizedby a Webbrowser, andtheWebbrowserwillsimplyreformateverythingbasedoffofhowthetagsaresothatlet's gooverthecomputerand I canshowyouhowbasicHTMLdocumentworks.
Sohereweare, onmylabcomputeragain, I use a Macbookformylabcomputer.
ButinordertowriteoutthisHTMLdocument, allyouneedis a basicaskingeditor.
EsoagainintheMacworld, I'm usingtextatit.
Ifyou'reusingWindows, youcansimplyusenotepad.
Ifyou'reusingLennox, youcanuse G editorthemorsomethinglikethat.
Youknow, again, withallthesemajorcorporations, it's been a lotoftime, moneyandenergytoetofailsometimesandesoduringtheprocessoffailing, youhad a lotofissueswithHTMLagain, certaincertainWebbrowserswouldwouldbeabletousespecifictags.
Whenwetake a lookatthebody, wecanseethat I used a coupleofdifferenttagshere.
So I usedthe 8th 1 tag S o the H one.
Andagainwe'lltalkaboutthesetagsin a futureclasstalkingabouttheformattingnomore.
But H oneiscalledtheheadingonetag s Sowhatthissaysiscreateheadingatthetoplayeresoheadingoneislikethebiggest, largesttypeoftagon a pagesowecangohereandlet's seeif I doiteighttoand I saythisison a totagAndthen I closedtheagetoo, right?
I coulddofile, I candosave.
Andif I gohere, I canrefresh.
AndsoyousayThisisaneighttotagandsoit's a bitsmallerthanwhatthat h onetagis.
Andagain, thisis a waytodobasicformattingonWebpagesoyoucanhavean h onetaggingittotaginitsthreetagfortag.
Itgoesallthewaydownlikesixorsomething.
ButbasicallytheseairjustlikeheadingtagsSoyouwouldusethisyoumightuse h oneis a titleforthepageandthenaneighttois a titlefor a chapter.
And a threeis a titlefor a section, Somethinglikethat.
Soifyourreason a backendscriptinglanguagesuchasPHPorpythonorrubyonrails, andyou'regoingtobeprintingoutreports.
Notonlydoyouhavetopulltheinformationfromthedatabaseandprintitouton a page, butyouactuallyhavetoprintitoutwithalltheappropriatetags s sothatwhenpeoplepullupthereporton a Webbrowser, itwilllookappropriateliterally.
Ifyoujusttypeout a wholebunchoftextintoessentially a textfilewithoutanyofthesethestags, itwilljustbewomanbig, long, horrible, nastyline.
Sothat's thefirstthingtorememberaboutwiththis s so I cangoin, I canclose, I getridofthebreak, andthenoneofthings I wanttoshowyouisIan.
Capitalizationdoesn't matter.
Soif I do a capital H onecapital H tolowercase H onelowercase H twohere I dofile.
I dosay, ifwecouldgoon, wedorefresh, andwecanseethatenough.
Andagain, basically, youcantypeoutthingslikethisandactuallyhaveitmakeitwork s o A lotoftimes, likewhen I'm showingyoufolksprojectsanddemonstrations, I'm notgonnagothroughandformateverythingquoteunquotecorrectlyforthingslikewhen I create a form, I'm justgonnacreate a former.
It's gonnatypeouttheinformation I needfor a formand I'm goingtosaythat I'm goingtousethatastheHTMLdocument.
Sothere's a basicoverviewofhowtheHTMLsyntaxworksandhowanHTMLdocumentstructureshouldlookagain.
Inmanyways, HTMLis a veryforgiving a markuplanguage.
Butinotherways, itcanbe a bitnastyandfinickyagainwantsyoutowantsyoutoopentags, anditwantsyoutoclosetags.
Aslongasyouopentagsandclosetags, you'llbegreat.
Ifyouopen a tagandforgettoclosethetag.
Allkindsofweirdnesscanensue.
Sowellthat I wasshowingyoutodaymeansmayseemverysimplebecauseagainyou'reusing a swanorpeeorwhateverelsetags.
Andsoitseemsprettysimplethatokay, if I forgottoclosethattag, I couldprettyquicklyfigureoutwherethatwheretheproblemstarted.
ButdoyourememberintheHTMLworldthereare a lotofdifferenttagsthatyoumightbeusing, andsowhenyouusesomeofthosetags, itcanbe a littlebitmoreconfusingtofigureoutwhereyouforgotwhereyouforgottoclose.
A tagatitcanenduptaking a lotoftimeandagaintheimportantthingandwhy, I wouldarguemostpeopleshouldunderstandhowHTMLworksisbecausesomanyoftheseWeezywigeditorsoutthereYousitthere, youtypeout a document, itsupposedtolook a certainway, andwhenyougotopublishit, itdoesn't lookhowit's supposedto.
Andliterally.
Thereasonisisbecausethateditor, forsomereason I forgottotakeout a tagifwegottoinput a tagwhenyousavedeverythingandthatkindofscrewseverythingup.
Soifyoucangobackintothesourceandyoucanseewherethoseorphantagsare, it's a loteasiertogobackthroughanddosomemodificationsagain.
A bigthingtounderstandwithHTMLisyoudon't havetodothefullHTMLdocumentstructurelike I showedyou.
Andthat's animportantthingtounderstandwith a teamoutlikeHow I wouldwritethingsinHTMLif I wasbeingpaidby a clientisdifferentthanhow I'd writethingsjustforprojectsthat I'm doingmyown, notbecauseoneismorefunctionalthantheother, butagain, whenpeoplearegoinginbehindyou, tryandunderstandwhatitisthatyoudid.
It's a loteasierifyouusethestandardHTMLstructureversusjusttypeeverythingoutandhopeotherpeoplecanunderstand.
Sothat's a basicoverviewofthesyntaxandformattingforyou.
Asalways, I enjoydoingthisclassandlookfortoseeingthenextone.
Ifyoulikethecontentthat I create, pleasethinkaboutgoingtoalignthecomputerguydotcomandbecoming a memberordonating.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.