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

使用 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/>
         <figcaption>Tutorials Point Library of Tutorials</figcaption>
      </figure>
   </body>
</html>

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

简简单单挺好的

联系我们 订单查询