链接标签

基本格式

<a href="跳转目标" target="目标窗口的打开方式" >文本或图像</a>

实战

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <a href="http://www.baidu.com" target="_blank" >外部链接</a>
    <a href="report.html" >内部链接</a>
    <a href="#" >空连接</a>
    <a href="可以连接图像、视频等超链接" >超链接</a>
</body>
</html>

target="_blank"为新窗口打开该链接

你可能感兴趣的:(web前端技术)