The Base Element
The <base> element specifies the base URL and/or default target for all relative URLs in a document. It must be placed inside <head>, and there can only be one <base> element per page. Both the href and target attributes are optional, but at least one must be present.
When and How to Use It
Setting <base href="https://example.com/docs/"> means every relative link like <a href="intro.html"> resolves to https://example.com/docs/intro.html. This is useful for documentation generators or pages served from deeply nested paths that reference resources by short relative paths. The target attribute sets the default target for all links on the page — for instance, target="_blank" would open all links in new tabs unless overridden per link.