如何在HTML中指定链接所指向的页面的URL?

原创
ithorizon 5个月前 (10-19) 阅读数 36 #HTML

使用 href 属性指定链接在 HTML 中转到的页面的 URL。

示例

您可以尝试运行以下代码来实现 href 属性 -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML href attribute</title>
   </head>
   <body>
      <figure><img  src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg"/ alt="如何在HTML中指定链接所指向的页面的URL?" >
         <figcaption>Tutorials Point Library of Tutorials</figcaption>
      </figure>
   </body>
</html>

以上就是如何在HTML中指定链接所指向的页面的URL?的详细内容,更多请关注IT视界其它相关文章!



热门