base (HTML5)

Specifies a base URL for all of the relative URLs in the document to use.

Properties & Events

KeyDescriptionAvailability
hrefPath or URL for the linked document or object.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
idUnique identifier for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
targetTarget window to use for opening the linked document.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0

Examples having uses of: 'base'

0 votes
1k views

HTML Base

The <base> tag specifies a default address or a default target for all links on a page
0 votes
1k views

Complete Web Page Example

The HTML head Element The head element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more. The following tags can be added to the head section: <title>, <base>, <link>, <meta>, <script>, and <style>.