Jump to content
xisto Community
Sign in to follow this  
Lozbo

Base Tag relative or absolute?

Recommended Posts

Ive read the w3schools tag description for <base> and i fount that it must be written in this format:

<base href="http://http://www.mysite.trap18.com/img/; />

So what im asking is if this href must be absolute or can it be relative like:

<base href="/img/" />

As i did not find anything about it on w three skulls nor in google (yet i only visited a few links). Absolute links slow down the retrieving of the info right?Thanks! -10730

Share this post


Link to post
Share on other sites

I do believe they allow relative linking, and I don't think that absolute links are any slower, on the contrary, I would assume they are faster, given the fact that relative links must be implicitly converted to an absolute link..

Share this post


Link to post
Share on other sites

Not that i assume but ive read dont remember where something about it, that the absolute url (dns name or site ip) will make slower the retrieving info. What i assume on it is that as the site is already in that when trying a different domain it must call again the http headers or something like that (im not sure about this) like reloading it.And as of the base tag, i found that the god damn IE6 messing with every file when declaring this:

<base href="/folder/next_folder/" />

Instead of this:

<base href="http://forums.xisto.com/no_longer_exists/; />

The first case made all routes of my files missing like if IE was searching i dont know where else something like this:

<img src="img/ico.gif" />

I couldnt find what was it and as soon as i change to the second case it fixed. Im not against microsoft, but dammit, if a group of people working in open source can keep up, why cant a transnational do so?-10730

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.