html链接标签
A标签可以在网页上定义一个链接地址,它的常用属性有:
1
href属性 定义跳转的地址
title属性 定义鼠标悬停时弹出的提示文字框
target属性 定义链接窗口打开的位置
target="_self" 缺省值,新页面替换原来的页面,在原来位置打开
target="_blank" 新页面会在新开的一个浏览器窗口打开
<A href="#"></a> <!-- # 表示链接到页面顶部 -->
<A href="http://www.itcast.cn/" title="跳转的传智播客网站">传智播客</a>
<A href="2.html" target="_blank">测试页面2</a>
```1
2
3
鼠标悬停时的文字框示例:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200211162459258.png)