Jump to content

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


<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>
<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>
It would save a lot of writing!
Edited by ferren
Link to post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...