The <base> tag specifies a default URL, and/or a default target, for all elements with a URL.
Supported In HTML4: Yes
Supported In HTML5: Yes
HTML4 vs HTML5 Differences: None
Attributes
| Title | Values | Description | HTML4 Support | HTML5 Support |
| href | URL | Specifies the URL to use as the base URL for links in the page. | Yes | Yes |
| target | _blank _parent _self _top | Where to open all the links on the page. This attribute can be overridden by using the target attribute in each link. _blank - all the links will open in new windows _self - all the links will open in the same frame they where clicked _parent - all the links will open in the parent frameset _top - all the links will open in the full body of the window | No | No |
Standard Attributes
Event Attributes
HTML5 Tags
- a
- abbr
- acronym
- address
- applet
- area
- article
- aside
- audio
- b
- base
- basefont
- bdo
- big
- blockquote
- body
- br
- button
- canvas
- caption
- center
- cite
- code
- col
- colgroup
- command
- datalist
- dd
- del
- details
- dfn
- dir
- div