Jul 26, 2008

Base Tag - relative or absolute?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Base Tag - relative or absolute?

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

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


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


HTML
<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

Reply

SystemWisdom
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..

Reply

Lozbo
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:

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


Instead of this:

HTML
<base href="http://www.avoid.trap666/folder/next_folder/" />


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

HTML
<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

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : tag relative absolute

  1. Server Absolute Referencing - on a trap17 sub-domain (4)



Looking for base, tag, relative, absolute

Searching Video's for base, tag, relative, absolute
advertisement



Base Tag - relative or absolute?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE