Soit's given I d hereofhomeandtheninsideofherewecanfirstputinourcontentwhich, inourcase, whereyoucan't havean h onethatsayshomeandthenyou'regonnahave a paragraphtagandthisisjustgoingtosaysomethingalongthelinesofthisisthehome.
Therewego.
Let's copythisdown a couplemoretimesmakingsurethatwekeepthisinsideofourtabcontentsection.
Sowehaveourhome, wehave a pricingandwehaveheraboutandappearwe'regonnahavebeenpricingandaboutfor a differenttitles.
Sothefirstthingweneedtodoisbuildtoe, haveourtabslinkupto a specificsection, and I canactuallyreallyeasilybehandledinourhtmlbyusingdataattributessowecancomeinhereandwecouldjustsaydataWhoops, datatab, target.
Andthisisgoingtobetheselector.
That's theLexxaretag.
Inourcase, wehaveideasandallofthesesowecanjustmakethisoneselectourhome, I d Andwecoulddothesameexactthing.
SonowthatwefinallyhavealloftheJavascriptthatwe'regonnaneedfornowoutoftheway, let's workonstylingthistomakeitlook a littlebitbetter.
Todothat, wewanttofirstbuild a selectourlistoverheresowecanadd a classwhichisjustgoingtobetabsbecausethisisgoingtocontainallofourtabs, andwealsowanttobeabletoselecteachofourindividualtabs.
Soit's ofcourse, at a classinhere, whichisjustgoingtobetabtoeachoneofourindividualtabs.
It's cursorpointerthatwhenwehoveroverit, youseewegettheactualcursorforclickingonthingssothatusersknowthattheseairtabsthattheycanclickonalsowewanttoadd a littlebitofspacingwillsaypaddingof 10 pixels, forexample.
That's justgoingtospaceouttheseelementsfromtheThompsonsidesofourpagejust a littlebittomakethemmoreobviousandeasiertoclick.
Also, wewanttoadd a littlebitof a hovereffectontopofourtabs.
Sowewanttochangethebackgroundcolorwheneverwehover, sowecouldcomeinhere a backgroundcolor.
We'regonnachangethistojust a A.
That's a fairlydarkcolor.
Sonowifwesaythatandhover, youcouldsaywekindofget a darkishgreycolorwheneverwehoveroveranything, butweneedthatactivestylesothatweknowwhichtabwe'vecurrentlyselected.
Now, ifwesaythatandclickon a differenttab, you'llseetheactiveclassmovestothistabbecauseit's beingcoloredanditremovesitfromtheprevioustabthatwasalreadycolored.
Anditworksonallofourdifferenttabs.
Nomatterhowmanytimesweclick, thelastthingthatweneedtodotomakethepagelookjust a littlebitbetterhascomedownhereandselectourtabcontent, andwejustwanttospacethisout a littlebit.
Ifyou'reinterestedinmoreofthesetutorialsonHTMLCSSorJavaScript, checkthemout, linkedoverhereandalsosubscribetothechannelformorevideoswhere I simplifythewebforyou.