学习html5基础--4.链接标签

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学习连接标签</title>
</head>
<body>
<!-- 锚链接回到顶部的标记-->
<a name="top"></a>
<!--
href : href后面跟的是网页地址
target : 表示网页的打开方式
_blank : 表示网页在新窗口打开
_self : 表示在本窗口打开
-->

<a href="1.我的第一个网页.html" target="_blank">点击跳转到页面1</a><br/>
<a href="https://www.baidu.com" target="_self">点击跳转到百度</a><br/>
<a href="https://bbs.nga.cn/thread.php?fid=422">点击跳转到NGA论坛</a><br/>
<a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a>

<p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p><p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p><p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p><p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p><p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p><p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p><p><a href="https://www.baidu.com">
    <img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="300" height="300">
</a></p>



<!-- 锚链接

-->
<a href="#top">回到顶部</a>

<a name="down"></a>






</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学习图像标签</title>
</head>
<body>

<!-- img图像标签
src : 可以用相对路径和绝对路径,默认用相对路径
alt : 图片名字
-->
<img src="../resources/image/1.jpg" alt="图片名字" title="悬停文字:哥们发现了啥?" width="1024" height="768">
<!-- 跨页面跳转,可以跳转到上面的页面-->
<a href="4.链接标签.html#down">跳转</a>
</body>
</html>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值