Jump to content

<base>?


ThePsion5

Recommended Posts

Hi guys,I was doing some work today and I came across a webpage that used a <base> tag to specify the domain for all relative links. I've never encountered this tag before and I was wondering if I should be using it, as I've never had any issues with relative links anyway. Advice?

Link to comment
Share on other sites

It is not a common element, while it's very handy attribute target is deprecated, and relative urls aren't necessary needed to converted into absolute paths. It can be used when all urls (or most) at that page have an absolute path that is very long, or a path that is relatively to the current folder not the same, then a different absolute path can be handy. You may use this element if you want, it isn't deprecated. But it is not necessary :)If you choose for Xhtml and work in "Transitional", you also may use the target attributealso, to specify all links should be opened in a new window for example. But that is not recommended.

Link to comment
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
×
×
  • Create New...