<base>
HTML <base> Element Reference
The HTML <base> element establishes the base URL and default browsing context used by relative links in a document.
Categories
- Document metadata
Tag omission
This is a void element and does not have an end tag.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical base element example.
<head>
<base href="https://example.com/docs/">
</head>