Thefirstwaythat a lotofpeopleknowaboutisagainthatexternalstylesheet.
Youhave a stylesheetwherealloftheCSSiswrittenout, andthensimplywhenevertheWebpagesdisplayed, theWebbrowserwillgotothatstylesheet C withthe H onetaggedtheimagetag.
ThethirdwayyoucanaddCSStoyourHTMLdocumentis, infact, in a line, eh?
Soitlooks a lotliketheoldhtmlfourformatting.
Lookwhereyoudowhatevertagyou'regonna D'ohthe p tagVHonetagWhateverelse, thenyoudospace, andrightafterthat, youdostyleequals.
AndthenyouputinallofthepropertiesandalltheCSSvaluesthatyouwantforwhatevergoesbetweenbetweenthetagsthatyou'recreatingon, thenthatwillformatthetheHTMLthatway s oh, therearethreedifferentwaysthatyouwereabletoaddCSStoyourdocument.
Sowhenweopenthisupin a webbrowser, it'llactuallyjustsimplyopenupagainasanHTMLdocument.
Soherewhatwehaveagain, I'vestrippedoutalltheothertagslike I doin a lotofprojectssothatyoucansimplyseewhat I'm showingyouagain.
Ifyou'reactuallywriting a normaldocument, youshouldyoushouldwriteeverythingoutproperly, butherewego.
Sowehavethe H onetag, thenwhatwe'regoingtodofortheinline C S s stylingiswe'regoingtosaystyleequalsandthey'regoingtodoublequotationmarkson.
Thenwhatwe'regoingtodoiswe'regoingtoputinthepropertiesandthevaluesofhowwewantthistextwithinthe H onetagtobestyledesoforthis, we'regoingtosaytexthyphen, a linecolon, a center.
Relationequals, andwe'regoingtosaythatis a stylesheet.
Thenwe'regoingtosayHerathequalsdoublequotation.
AndthenwhateverthenameorwhateverthepathtothatstylesheetissSothisstylesheisactuallysittingintheexactsamedirectoryasthisHTMLdocument, so I couldjustreferenceitbystyledotCSS.
Butifit's in a differentfolder, it's up.
A couplelevelsaredown a coupleoflevelsorwhateverelse.
Solet's sayyou'redoing a newspaperwebsiteessentiallyandsothesportssectionshouldhave a certainlookandfeelandthenewssectionshouldhave a certainlookandfeelandtheopinionsectionshouldhave a certainlookandfeel.
Ittrumpstheexternalstylesheetheadtrumpstheexternalstylesheetandintheexternalstylesheetagain, that's a goodway.
Youcancreate a defaultstylingforallofyourdocumentsandsimplyhaveallofyourHTMLdocumentsreferencebacktothatonestylesheet.
Sothereyougonow, andyouhave a basicunderstandingofhowtobring c.
S s intoyour a femaledocuments.
On a previousclass, I showedyouhowtodothebasicsyntaxofusingtheselector, havingtheproperty, havingthevalueagain, usingthesquigglyandusingtheDLemitterswhereneedbe.
Andsonow I havebeenshowedyouhowtoactuallybringinthatCSSintoyourcameoutdocuments.
Soagainyoucanhavethatexternalstylesheetthatagainisgoingtobe a veryvaluablethingifyou'regoingtohave a Webpagewithmultipledifferentpagesonit.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.