HTML tag
Example
Specifies the default URL and default target for all links on the page:
<
head
<
base
href
=
"
http://www.runoob.com/images/
"
target
=
"
_blank
"
head
<
body
<
img
src
=
"
logo.png
"
width
=
"
24
"
height
=
"
39
"
alt
=
"
Stickman
"
<
a
href
=
"
http://www.runoob.com
"
runoob.com
a
bodyTry it »
Browser support

All major browsers support
Tag Definition and Usage Notes
In a document, at most one can be used
Tips and Notes
**Tip:** Please place the
**Note:** If the
Differences between HTML 4.01 and HTML5
none.
Differences between HTML and XHTML
In HTML,
In XHTML,
property
| property | Value | Description |
|---|---|---|
| href | URL | Specifies the base URL for all relative links on the page. |
| target | _blank |
_parent
_self
_top
*framename* | Specifies where all hyperlinks and forms on the page open. This attribute will be overridden by the target attribute in each link. |
Global Attributes
Event attribute
Related Articles
HTML DOM Reference Manual: Base Object