Jump to content

base tag


ferren

Recommended Posts

<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>
<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 by ferren
Link to comment
Share on other sites

Because W3C defined at:

Definition and Usage

The <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

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...