ThePsion5 Posted August 4, 2006 Share Posted August 4, 2006 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 More sharing options...
Skemcin Posted August 4, 2006 Share Posted August 4, 2006 http://www.w3schools.com/tags/tag_base.aspthis is good for making sure all your links use the absolute path. its good for sending HTMl emails but for general web page use, its not something you really need to worry about. Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 8, 2006 Share Posted August 8, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now