如何在 HTML 中指定链接的目标页面的 URL?
使用 href 属性来指定链接的目标页面的 URL。
示例
你可以尝试运行以下代码来实现 href 属性 −
<!DOCTYPE html> <html> <head> <title>HTML href attribute</title> </head> <body> <figure><img src = "https://tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg"/> <figcaption>Tutorials Point Library of Tutorials</figcaption> </figure> </body> </html>
广告
数据结构
网络
关系型数据库
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP