HTML base tag

Last Updated on April 26, 2023 by Roshan Parihar

HTML base tag is used to specify the base url of a website.

This base url becomes the starting point of all the url’s. If You want to set the main url to take as the starting point of all the url, then use base tag.



Base tag target attribute

The target attribute of base tag is used to specify the location to open the linked web document.

Sr. No. target atribute options Description
1 _blank Open the linked document in the new window/tab
2 _self Open the linked document in the same window/tab
3 _parent Used to create header cells in a table.
4 _top Used to create a cells in each rows of a table.

Resources and References of HTML base tag

1. W3C Specification.
2. HTML living standard
3. W3C project using Github