HTML base Tag

The <base> tag specifies the base URL/target for all relative URLs in a document.

There can be at maximum one <base> element in a document, and it must be inside the <head> element.

 Example of Code

<!DOCTYPE html>
<html lang="en">
    <title>Example of HTML base tag</title>
    <base href="http://schools.inimisttech.com/">
    <p>Learn <a href="tutorial/topic/Html/">HTML</a>.</p>


Example of HTML base tag

Learn HTML.