so why would you do this? i thought the browsers just figured it out automatically?
does this serve any purpose?
------------------
Eric Jones - WR Administrator
http://www.sitepoint.com
eric@sitepoint.com
ICQ 1215804 (mention WR)
Printable View
so why would you do this? i thought the browsers just figured it out automatically?
does this serve any purpose?
------------------
Eric Jones - WR Administrator
http://www.sitepoint.com
eric@sitepoint.com
ICQ 1215804 (mention WR)
What are base tags? i saw them on Sitepoint and can't figure them out...
------------------
Eric Jones - WR Administrator
http://www.sitepoint.com
eric@sitepoint.com
ICQ 1215804 (mention WR)
base URL for all relative URLs in the document
<base href=".." target="..">
------------------
Have something to say?
ICQ#20563633
well, I use it on our intranet site when I have two different servers and I need to go back and forth between them. Then your URLs are http://172.22.22.2/whatever and I use <base> so I dont have to write out the http://172.22.22.2 every time.
They probably help stupid browsers and primitive robots. Plus, if all the links on a page point to another domain, say yahoo.com you can just use
<base href="http://www.yahoo.com/"> in the base tag and then in your links just use the relative path to save typing and space.
The best use is <base target="_self"> or <base target="_new"> etc. It tells what frame, or if a new window the link should be opened in.