Set an alternate origin for sourcerefs


The base element overrides the document's point of reference.

Normally the DNS domain name of the page is the reference point for hyperlinks and media.

The base element can be used to change this so that sourcerefs specified using relative paths are resolved to an alternate absolute path.


Use sourceref notation to define the reference point for relative URLs.


Switching the base URL for all relative anchors, links, media, and forms
from to

head {
base ``
body {
img `/pics/sunset.png`
Rebasing to

The sunset image will be obtained from


The head element comprises subordinate elements for the purpose of describing the document, its context, and its dependencies.

semantax > action > baseSet an alternate origin for sourcerefs