HTML base tag
HTML <base> tag sets the base/source/target for all relative URLS in the document. Placed inside the <head> element <base> is allowed maximum one time in whole document.
Note : In the <head> tag, the <base> should be placed in the first line so other sources, targets, files can follow it correctly.
Attributes value used in the <base> tag are:
- href: This specifies a permanent base URL for all sources in the document
- target: Once set this targets all the hyperlinks and forms in the web page
Tip : All modern browsers support this <base> tag in their rendering.