Outdoorsman's views of the IT world

mooch-(verb) - To get or try to get something free of charge;

RSS Feed AddThis Social Bookmark Button

go back

Mooch a Web Standard - Absolute vs. Relative Links

Posted on September 4, 2007

Relative links shall be used for all instances where the destination page is located within the same logical site. Ex/ “../index.asp” instead of http://highered.org/index.asp.

Absolute links may only be used when referring to a site outside of the logical site. Using absolute links limits you to a more specific structure than necessary and complicates migrations to and from other servers.

When using relative links you may go up and down directories by using “..” to represent the directory above the current one, or by specifying the directory name with no leading “/”. Ex/ current location www.moochweb.com/docs, to go up a directory use “../”, to go down a directory use “images/”.

Never specify the default document in the link.


What is Mooch a Web Standard?

Mooch a Web Standard provides free examples of some of the most common web development standards. These standards were developed by myself as part of an initiative I pulled together at my current place of employment.

Feel free to liberate these standards for your own use.


Other Moochable Web Standards

Comments

All HTML, scripts, etc. are not allowed. Keep it clean. TEXT ONLY. I also have the right to remove any posts that I feel are irrelevant to the article.