The base label head: Set the default behavior of hyperlinks

By default, if you do not specify a hyperlink target attribute, open in the current window. Use head in the base can develop a hyperlink base class, all hyperlinks will inherit its properties.

<html>

<head>

    <base target="_blank" />
</head>

<body>
    <a href="https://weiyinfu.cn">weiyinfu.cn</a>
</body>

</html>

In addition, base may also indicate href attribute, which indicates the relative links.

<base href="http://mysite/images/" />
<img src="5.gif"/>

Guess you like

Origin www.cnblogs.com/weiyinfu/p/11967263.html