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 › 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
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
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 ”>
In my folder file.ext In a subfolder subfolder/file.ext In a higher folder ../file.ext On the web http://www. …
Recommend
More recommend