Set an alternate origin for sourcerefs
base
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.
Properties
- href
- Use sourceref notation to define the reference point for relative URLs.
Example
Switching the base URL for all relative anchors, links, media, and forms
from https://example.com
to https://other.example.com
The sunset image will be obtained from https://other.example.com/pics/sunset.png
Ancestor
- head
- The head element comprises subordinate elements for the purpose of describing the document, its context, and its dependencies.