base Tag

Certify and Increase Opportunity.
Govt. Certified HTML5 Developer

It is used to give a base path for all the links. So that browser will add given relative path to this base path and will make an absolute URL. It specifies a default URL and a default target for all links on a page

It is used inside the head element and has no end tag.

The href attribute of the base tag is used to give the URL for example

<base href=” /” />

Hence, a relative URL like


after conversion to absolute URL by the browser will be

Get industry recognized certification – Contact us