HTML <BASE> tagBase URL is applied to relative URL ( or Links , Image SRC ) of the page.
Attributes
Example : Link with target=_blank ( open in new window )
Example : Linking image from image directory of root.Our image logo.jpg is placed inside image directory at root. So Base tag ketp inside HEAD tag is
In our present directory , inside this page we have image URL like this.
Output is here We have used relative URL here, we can also use absolute URL like this.
Reading base URLWe can get base URL of the page by using this script.
This article is written by plus2net.com team.
![]() | ||||||
| ||||||