<base> element specifies attributes for all links in the document at once.
Let's take a look at this example:
<head> <base target="_blank"> </head>
Now all links will open in a new tab by default.
href attribute can be set within
<base> tag. This sets the base URL to be used throughout the document for relative URL addresses.
<head> <base href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base"> </head>
The following link:
<body> ... <a target="_blank" href="#Usage_notes">Usage notes</a> ... </body>
Will actually point to
<base>shouldn't have a closing tag. 🤷
- There can be only one base element in a document.