Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML base href attribute

HTML href property

HTML base Tag Reference HTML tag

Example

Specify a base URL for all relative URLs on the page:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the href property.


Definition and Usage

The href attribute specifies the base URL for all relative links in the page.


Syntax

HTML base Tag Reference HTML tag