HTML 'base' Tag/Element


What Is the HTML "base" Tag/Element?



The "base" element is an optional sub-element of the "head" element. The "base" element specifies a base URL for all the hyper links in XHTML document. It has one required attribute called "href" to allow you to specify the base URL. Here is an example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  <base href="" />
  <title>My First XHTML Document</title>
  <p><img src="/_icon_HTML.png" alt="HTML" /></p>

If you view this document in a browser, the image will be fetched from


HTML 'script' Tag/Element in 'head' Element

HTML Author 'meta' Tag/Element

HTML Document Structure and Head Level Tags

⇑⇑ HTML Tutorials

2017-06-23, 1408🔥, 0💬