ferren Posted November 7, 2014 Share Posted November 7, 2014 (edited) <base> is currently limited to one appearance per html document, and must appear in the <head>. Why this limitation? I would be convenient, for instance, to be able to make an index in the following form: <base href=“http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"> <ul> <li><a href="#1"> 22.1 Global Heating</a></li> <li><a href="#2"> 22.2 Vostok Data</a></li> <li><a href="#3"> 22.3 Early Methane</a></li> ... </ul></base> <base href=“http://yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"> <ul> <li><a href=“#1"> 23.1 Antarctic Ice Loss</a></li> <li><a href=“#2"> 23.2 Arctic Ice Loss</a></li> <li><a href=“#3"> 23.3 25-Year Model</a></li> … </ul></base> It would save a lot of writing! Edited November 7, 2014 by ferren Link to comment Share on other sites More sharing options...
Wolverine Posted November 7, 2014 Share Posted November 7, 2014 Because W3C defined at: Definition and UsageThe <base> tag specifies the base URL/target for all relative URLs in a document. There can be at maximum one <base> element in a document, and it must be inside the <head> element. It is not meant for making Indexes with. 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