Re: problem with the <base href....> tag

The value of the href attribute in the <base> tag should be an absolute URI.
such as http://www.w3.org/mysite/ and not /mysite/

From http://www.w3.org/TR/REC-html40/struct/links.html

<!ELEMENT BASE - O EMPTY               -- document base URI -->
<!ATTLIST BASE
  href        %URI;          #REQUIRED -- URI that acts as base URI --
  >
Start tag: required, End tag: forbidden
Attribute definitions
href = uri [CT]
This attribute specifies an absolute URI that acts as the base URI for
resolving relative URIs.

Regards,
Nir

At 03:11 AM 12/19/99 +0100, Mathieu Pillard wrote:
>i've a little problem with the <base> tag.
>I wanted to set the base href to a directory called mysite.
>So I put <BASE href="/mysite/"> in my document header.
>But, when I lanched IE5, the browser didn't understood the <base>
>correctly, it assumed that i wanted to put http:///green/ (I saw it
>because i looked to the status bar while my mouse was over a link)
>what's wrong ? does it only happens with IE5 ? How can I correct it,
>please ?
>
>Mat
>www.dioxine.com/king
>icq 49445666
>
>PS: please excuse my bad and ugly english - I'm french -
> 
===================================
Nir Dagan
Assistant Professor of Economics
Brown University 
Providence, RI
USA

http://www.nirdagan.com
mailto:nir@nirdagan.com
tel:+1-401-863-2145

Received on Sunday, 19 December 1999 13:25:11 UTC