Base URL | WebReference

Base URL

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Base URL

<base>

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+

Attributes:
  • href
  • target

Code Example:

<base href="http://www.webreference.com/">

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




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/