HTML BASICS: HTML Base Tag

HTML <base> Tag

HTML base tag lies inside the head part of the HTML document.It specifies the base URL for all links also define a common target for these llinks. There is only a single base tag in one HTML document. <base> tag has no closing tag in HTML.


HTML Tips

1. HTML base tag provides information to all the elements under head element.For that we need to put the base tag just below the head tag.
2. Either a base tag or an href or target attribute present in a document.

Browser Supports

ElementChromeExplorerFirefoxOperaSafari
<base>YesYesYesYesYes

Global Attributes

The <base> tag supports global attributes in HTML.

Event Attributes

The <base> tag also supports the Event Attributes in HTML.


Related Articles




Jesna N Scaria

Articles : 32

I am a Software Developer at Leedhar Technologies
India India