The essence of the base URL is to set the properties of the hyperlink uniformly. The base URL tag is </base>, which has two properties, href and _target. href is used to set the path of the base URL, and _target is used to set the way to open the hyperlink.
By adding the base URL, all relative website root directory addresses on the page can be converted into absolute addresses. When the browser browses a page, the relative website and directory address are attached to the back of the base URL path through the <base> tag, thereby converting it into an absolute address. We first create a base.htm and write the HTML code as follows:
Copy the code