[uf-discuss] URLs in hrefs
davidjanes at blogmatrix.com
Mon Apr 23 05:47:02 PDT 2007
On 4/23/07, Brian Suda <brian.suda at gmail.com> wrote:
> you can have the best of both worlds. In each <a href=""> just use
> "/radio4". This makes the link relative. But then you can also add a
> <base href="http://bbc.co.uk/"> when this is in your HTML it will make
> all the hrefs absolute (or it should for any decent parser).
> The advantage of using the <base> element is that you can easily
> switch it to something like <base href="http://my-dev-site.bcc.co.uk">
> and you don't have to rewrite all the hrefs within the HTML.
With the slight downside that it makes your code a little more
brittle, as you have to make sure the URI shown in BASE is the right
More information about the microformats-discuss