HTML base tag

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 optionsDescription
1_blankOpen the linked document in the new window/tab
2_selfOpen the linked document in the same window/tab
3_parentUsed to create header cells in a table.
4_topUsed 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

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.