HTML—超链接

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 
 4 <head>
 5     <meta charset="UTF-8">
 6     <meta http-equiv="X-UA-Compatible" content="IE=edge">
 7     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 8     <title>超链接或热链接</title>
 9     <style>
10         a {
11             text-decoration: none;
12             /* 取消超链接下划线 */
13         }
14     </style>
15 </head>
16 
17 <body>
18     <a href="https://www.baidu.com/?tn=15007414_17_dg">百度</a>
19     <!-- href属性后面一定是一个资源的地址,href后面的路径可以是绝对路径也可以是相对路径,可以是网络中某个资源的路径,也可以是本地资源的路径
20     超链接的特点:有下划线,鼠标停留在超链接上显示小手形状,点击超链接之后跳换页面 -->
21 
22 </body>
23 
24 </html>

 

posted @ 2022-02-09 16:40  氧化桐  阅读(65)  评论(0)    收藏  举报