Asyouknow, I amElithecomputerguy, andintoday's class, we'regoingtobegoingoverthebasicsyntaxfor C.
S s cascadingstylesheets.
Soagain, allCSSdoesallcascadingstylesheetsdoistheybasicallyformattheHTMLthatyouwillbeprintingto a pagesoyoucanusethebasic H onetagsettutags P tagssoonandsoforthtoprinttextto a pagein a female.
Andsothat's what I'm goingtobeteachingyoutodayintoday's class.
So a bitof a warningwarningherefortoday's class.
We'reatthatpointinCSSwhen I amteachingyouthingsandyoukindofhavetounderstandmultipledifferentsubjectsbeforeanyofthosesubjectsfullymakessenseagaininthetechnologyworld, whentheythinkthatthingscouldbe a paintthatcouldbe a paininthebuttisthat I havetoexplainthis.
So I'm notactuallygoingtobegettingtothatinthisparticularclass.
Andthatwillbeinthenextvideowhat I gotwhen I willtalkaboutexternalstylesheetsandhowtoactuallyinsertCSSintoyourHTMLdocument.
Sofortoday, all I'm showingyouisthebasicsyntaxsothatwhenyougettothenextclass, everythingisgoingtomake a lotmoresense.
Soifattheendoftoday's classyoukindofunderstoodwhatstand a littlebit, you'relike, OK, sothat's what a selectoris, andthat's what a propertyis, andthat's what a valueis.
But I'm notreallysurehowthisFoleyworks.
That's okay.
Thatiscompletelyokaywiththenextclass.
When I showyouhowtoactuallyputtheCSSintoanHTMLdocument, allofthisshouldcometogetherandmake a lotmoresenseforyou.
Sowiththat, let's gooverthecomputerand I canexplainhowthisworks.
Sohereweareatmydemonstrationsystemagain, I'm using a Macbookpro.
We'rethengoingtoopenupwiththeheadtagandinsidetheheadtagisgoingtobethestyletag s sobasicallyeverythingwithinthestyletagsisgoingtodefinewhatthe C s s shouldlooklikefortherestofthedocument.
Thenyou'regoingtoseparatethiswith a colonsonormalcolonandthenafterthat, you'regoingtosaywhatthevalueofthatpropertyshouldbe.
Sothebackgroundcolorforbody, wewantthistobeorangeforthisparticularexamplethanwhatwe'regonnadoiswe'regoingtouse a semicolonas a delimitersodelimiterbasicallysaysthisisonevalue.
Thisisonesetandthenyoucangotothenext.
Youcouldgotothenext.
Youcangotothenext.
Youcangonext.
Ifyouforgettoputthesemicolonthere, youcanrunintoproblems, I guess.
Thisisoneofthoseplaceswhere a lotofpeopletrytobeliketwo.
Creative.
Theytrytogettobetoosmart, andit's no, it's paintbynumbers.
Yougottatag, gotproperties, gotvalues.
Justplugintheonesthatworkbestforyou.
OneofthewaysthatCSScanbecomeveryinterestingforyou, though, isdorememberwheneveryou'redealingwith a Webapplicationor a websiteyou'rehavingmultiplecodinglanguagesactuallyallcometogetherinordertocreatethatsite.
SooneoftheinterestingthingswithCSSisyoucanhave C s S b writtenbythingslikePHPorsomekindof a backandprogramminglanguage.
Sowhenyou'retalkingaboutthingslikefontsize, whenyou'retalkingaboutotherotherpropertiesandvaluesonyourHTMLpage, rememberthat a backendcodinglanguagecanactuallydynamicallyrightanHTMLpageforyouandasitdynamicallyrightsatHTMLpageforyou.
Soifpeoplearegoingtoyourwebsiteandlet's saytheywantfontstobebigger, theycoulddothingslikeselect a largerfontsize.
Andthenwhenevertheygoto a newWebpageonyouronhersite, whenthePHPgoestowritethathtmlpage, itcanthenmodifywhatthefontsizeshouldbewhenit's dynamicallyprintingitout.
So, uh, thedefaultmightbe, I don't 12 pixelsfortextonthepage, butifyou'redealingwitholderpeople, theymightbeabletomodifyandsay, I want a largertextsize.
Andsowhenthattextisprintedoutonthepage, itissomethinglike a 20 or a 40 pixelsagain, whateverthehellitisthatyoudecide.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.