Code and Output for base:

Code:

    <!DOCTYPE html>
    <html>
    <head>
      <base href="" target="blank">
    </head>
    <body>
      <h1>The base element</h1>
      <p><a href="">HTML base tag</a> - Notice that the link opens in a new window, even if it has no target="_blank" attribute. This is because the target attribute of the base element is set to "_blank".<p>
    </body>
    </html>
  

Output:

The base element

HTML base tag

-Notice that the link opens in a new window, even if it has no target="_blank" attribute. This is because the target attribute of the base element is set to "_blank".