<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>base标签</title>
<!--<base>标签写在<head>标签中-->
<base href="https://i.csdn.net/#/uc/collection-list">
<base target="framename">
</head>
<body>
<!--当超链接标签<a>没有指定href和target的属性时会默认使用<base>标签的内容,反之使用自己的-->
<!--target属性的值:
_blank:在新窗口打开链接
_self:在当前窗口打开链接
_parent:在父框架集中打开被链接文档
_top:在整个窗口中打开被链接文档
-->
<h3 align="center">base标签</h3><br><br>
<div align="center">
<a href="">CSDN</a><br><br>
<a href="http://www.baidu.com" target="_self">base的百度</a><br><br>
<a href="http://www.baidu.com">我的百度</a><br><br>
</div>
</body>
</html>
HTML中base标签的介绍
最新推荐文章于 2024-01-03 13:17:42 发布