Base URL | WebReference

Base URL

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Base URL


Description: Identifies the root URL to be used with all relative URLs in the document.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

  • href
  • target

Code Example:

<base href="">

XHTML Notes: Because it is an empty element, the XHTML 1.0 specification requires a trailing slash: <base />

Created: March 15, 2005