HTML base tag
The HTML base tag can be used to control the link attributes in the web page. When the web designer uses the base tag, the default opening target of all links in the web page will be opened according to the requirements of the base tag. For example, use target=" in <base> Attributes like _blank", other links in the webpage, even if target="_blank" is not used, can still be used to open in new windows.
HTML base tag syntax
HTML base attribute table
| Attributes | Property value description |
| href | The default web page URL, if the link destination in the web page is not set, it will be the main one. |
| target | target="_blank". Open the link in a new window. |
| target="_parent". Open the link in the parent window. | |
| target="_self". Open the link directly in the frame. If there is no frame, it is equivalent to open the link directly in the same window. | |
| target="_top". Open the link in top mode. |
HTML base tag example
<base href="https://jasonchen050319.blogspot.com/" target="_self">
</head>
<a href="#">Jason SEO</a>
Post a Comment
0 Comments