I am a trainee webmaster and my trainer has told me to use the "base" tag in all docs but I can not see why, as browsers default to current doc anyway. Any body know of an understandable reason for using it.
The base element allows the URL of the document itself to be set, to help browsers in situations where the document may be read out of context. It is especially useful in allowing browsers to determine any partial URL's, or relative paths that may be specified (for example, in <A HREF> elements, or paths pointing to <IMG SRC=...> (images). The <base> Element should appear within the bounds of the <HEAD> element.
About "another content" that noted Kruzer there is at least two situations:
1. you can read document off-line.
2. sometimes, when you do server-side rewrites (for example with apache mod_rewrite) you document seemly (for browser) belongs to another directory that you think it is. For example you can have following URLs to book's content:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.