referencing SERVER 2 web page Images Web repository Server - - PowerPoint PPT Presentation

referencing
SMART_READER_LITE
LIVE PREVIEW

referencing SERVER 2 web page Images Web repository Server - - PowerPoint PPT Presentation

referencing SERVER 2 web page Images Web repository Server WEB PAGE Server instructions stores information and 3 1 instructions BROWSER retrieves web page Browser and follows instructions Client Can be any where on the web


slide-1
SLIDE 1

referencing

slide-2
SLIDE 2

SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions

Server Web Server Images Client Browser 1 3 2

slide-3
SLIDE 3

 Can be any where on the web

› src has full url

<img src=“http://www.cs.unc.edu/cms/about- us/sittersonsmall.jpg” alt=“Sitterson”>

 Problems

› Pictures change or disappear › You’re poaching on their resources

 NOT PERMITTED FOR THIS CLASS

slide-4
SLIDE 4
slide-5
SLIDE 5

 If you only have one or two, just another

file

› src just needs the file name › <img src=“sittersonsmall.jpg” alt=“Sitterson”> › REMEMBER: case matters

 If you have a lot, keep them in their own

folder

› src needs the path › <img src=“images/sittersonsmall.jpg”

alt=“Sitterson”>

 Either is specific to this website

slide-6
SLIDE 6

 Examples

› Company logo › Your picture

 Put it in the top level

› e.g., comp101 for this class › (same place as your course page)

 Reference as

› <img src=“../sittersonsmall.jpg”

alt=“Sitterson”>

slide-7
SLIDE 7

 In my folder

file.ext

 In a subfolder

subfolder/file.ext

 In a higher folder

../file.ext

 On the web

http://www. …