Andthenwhenyouwantanimagetoshowupsomewhereonthewebpage, essentiallywhatAllyoudoisyouhave a pointorintext, youhave a pointerandyousay, Hey, thisimageoverhere, I don't wantthispresentedinthewebpage.
Uh, thisisprettycool, niftyandneatbecauseitmeansyoucando a lotofinterestingthingswiththoseimages s o.
Soifyouhave, like a normalWebhostingplan, youknowyouhaveyourHTMLfileandthenyouhaveallyourpictureswithinthesamefolder.
That's onewayyoucanpointtoit, oryoucanpointtoanimageon a completelydifferentserver.
Solet's sayyousetup a serverthathas a wholebunchofimagefilesandyouwantdifferentwebsitestobeabletopointtothoseimagefilesyoucanactuallyagain, Sinceallitis a pointer.
Youcanputthepointerendthe 0.0.2 picturesthatareon a differentserver.
Oneofthings I'm goingtoshowyoutodayisyoucansimplycopytheaddressofanimageonsomebodyelse's somebodyelse's completelydifferentwebsite, andyoucanactuallypacethatdirectlyintoyourHTMLdocument, becauseagain, allwe'redoingisusing a pointertosayweneededwhat?
Theimagethat I wantinthispositionisthisimageoverhereon.
Soit's kindofaninterestingthingthatyoucandowiththeseimagesaswith a lotofthingsinHTML.
Intechnologyingeneral, thisis a veryeasythingtodo, aslongasyoudon't fatfigureitagain.
Aslongasyouunderstandthebasicsyntax.
It's prettysimple.
Now, theonlywarningwarninghere, I guess.
I guesswegottahave a littlebitof a warningwarning.
Hereisyoumayhavetounderstand a littlebitaboutfolderstructure, andyoumayhavetounderstand a littlebitaboutpermission.
Soifyou'reoneofthosepeoplethat's goneout, yousaid, I know I don't wantsomesharedhostingplan I don't wanttojustberunningthislittleWebpageoffthedesktopofmycomputer.
I wanttobuildmyownLennoxLennoxserverandhaveitsownfolderstructureandallthatkindofstuff.
Soagain, ifyoubuild a Lennoxserverandyouhave a folderforallofyourpictures, butthenyoudonotgivepeopleaccesstothatfolderwhenbasically, whentheWebbrowsertriestogoandgrabthatpictureoutofthefolderthatyou'vepointedThio, thatWebbrowserwillnothavethepermissionormaynothavethepermissionthat's required, andthereforethatpicturewillnotshowup.
Sothat's oneofthethingsyouknowwiththis.
Thatyoudojusthavetokeepinmindisthatyoudohavetounderstand a littlebitabouthowfolderstructureworksandthenbeontothat, understand a littlebitaboutsecurity.
Sobasically, what I'vedonehereis I'vecreated a littleHTMLdocumentcalledimagedothtmlandinthat I haveputthepicturepictured J p g.
Right.
Sothisis a J pegimageandbasicallyis a J pegimagefromwhen I wasatWebsummitlastyearandjustbasicallymeuponthestage.
Solet's say I wanttoputthisontomywebsitewheneverybodytoknow.
Yes, I wasoncenterstageofWebsummitlastyear.
Let's goandtake a lookathowthatthis, uh, thisbasicallythistagworks.
Sowhatwe'regonnabedoingiswe'regoingtobeusingtheimage S R C tag, eh?
Soyouopenup, youopenitup, andthenit's I m g.
Andthenit's space, andthenit's S R c, andthenyouputequals, andthenyouputdoublequotationsandthenwhatyou'regoingtodoisyou'regoingtoputthepathtotheimageyouwantembeddedontothisparticularwebpage.
Sowiththisit's periodforwardslashpicturedot j p g.
AndsotheimagedothtmlThisdocumentissittingonthedesktopandtheimagethepicturedodge a PGissittingonthedesktop.
SobasicallywhatthisissayingisitLookforwithinthecurrentfolderweareinsomethingcalledPictureDodge a PGandputthatintothedocument.
Thenallyoudoisyouclosethetagandliterally, thisisitagain, as I talkedaboutbeforehimonthepreviousclasses.
I'm notbuildingoutthefullwebpageherebecause I wanttoshowyouthespecifictagsothatyoureallyunderstand.
So I don't have a t m l tag.
I don't havetheheadtag.
I don't havethebodytag.
I'm nottalkingaboutthedocumenttyperightnowagain.
Tobeclear, ifyouaregoingtobepresentingthistoanenduseror a customeror a client, youwouldwanttomakesurethefullHTMLdocumentisproperlyformatted.
Let's openup a newtabandlet's gotoEli, thecomputerguydotcom I'veheardthis, Eli, thecomputerguys a prettygoodwebsiteand, youknow, maybe I wanttosteal a picture.
Sothisimagehereisactuallyjustsittingin a folderonmyWebserverandElithecomputerguydotcomthetheHTMLcodeforElithecomputerguydotcomsimplypointstothispicturereferencesit.
Andinsteadofhavingthatpicturedodge a PG I conduce.
Ooh, I canactuallypasteintheentireaddressforthisimageonElithecomputerguydotcomSoimage I m g spaceSRCequals.
Andthen, insteadofputtingsomethingthat's inthelocalfolderinsteadofputtingsomethingwithinthelocaldirectoryfiletree, I canactuallyreferencethisanimageonentirelydifferentwebsite.
So I dofileand I dosave I canthengotoimagedothtmlAiken.
Remember, onthecamelworldyou'redealingwith, askyoutextsoanythingthatcanactuallybetypedoutastextbasicallysimplyhastobe a referencetoas a pointorsoagainifyou'redoing a videofile, ifyou'redoingaudiofile, ifyou'redoing a pictureanyofthesemultimediadocumentsthey'renotactuallyembeddedinthedocumentitself.
Theyhavetobesomewherethat's accessiblebytheuser's Webbrowseronthenyousimplyput a pointerandyoupointtowherethatthatfileis.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.