
使用 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>











