Visit Mozilla.org

HTML:Element:base

From MDC

[edit] HTML Base URL Element

<base /> - This element specifies the base URL to use for all relative URLs contained within a document.

[edit] Attributes

href
This attribute specifies the base URL to be used throughout the document for relative URL addresses.
target
For documents containing frames, this attribute specifies the default target window for every link that does not have an explicit target reference. Aside from named frames, several special values exist. A value of _blank indicates a new window. A value of _parent indicates the parent frame set containing the source link. A value of _self indicates the frame containing the source link. A value of _top indicates the full browser window.

[edit] Examples

<base href="http://www.yourdomain.com/" />
<base target="_blank" href="http://www.yourdomain.com/" />  

[edit] Notes

  • <head> element.
  • HTML 2.0 and 3.2 define only the href attribute.
  • XHTML 1.0 requires a trailing slash: <base />


HTML Elements
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
(Quick Links: HTML Element Cross Reference, HTML Category)