<base>
Sets the base URL for every relative URL in the document.
Baseline: Widely available · Document structure
When to use it
Almost never — only when a document is deliberately served from multiple locations and must resolve assets against one canonical base.
When not to
It rewrites fragment links too (#main skip links, SVG url(#id) references), silently breaking them; prefer correct relative paths.
Key attributes
href- the base URL
target- default browsing context for links
Example
<base href='https://html-tags.com/docs/'>