HTML Base Tag | HTML <base> Tag | Meta Tag Base

HTML Base Tag


Define :
This tag specifies the base URL and/or target for all relative URLs in a document and it must be inside the <head> element.

For example :
Output :
   
It can only be one single <base> element in a document

Browser Support
All browsers are supported like Microsoft edge, chrome, firefox, opera.

Attributes :
Attribute
Value
Description
href
URL
It Specifies the base URL for all relative URLs in the page
target
_blank
_parent
_self
_top
It Specifies the default target for all hyperlinks and forms in the page
Global and Event Attributes
This tag is also supported global and event attributes in HTML.

Default CSS Settings

NONE