0
点赞
收藏
分享

微信扫一扫

HTML 链接标签

IT程序员 2022-02-08 阅读 91
html前端
<a href=""></a>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>超链接</title>
</head>
<body>
    <!-- 超链接  a -->
    <a href="https://www.baidu.com/">打开百度</a>
    <br>
    <!-- 打开新的窗口 -->
    <a href="https://www.bilibili.com" target="_blank">打开b站</a>

    <!-- 给图片绑定路径 -->
    <a href="https://www.bilibili.com" target="_blank"><img src="./image.jpg" alt="多啦A梦"></a>

</body>
</html>
举报

相关推荐

0 条评论