如何在 HTML 中指定連結指向的頁面的 URL?
在 HTML 中使用 href 屬性來指定連結指向的頁面的 URL。
示例
可以嘗試執行以下程式碼來實現 href 屬性 −
<!DOCTYPE html> <html> <head> <title>HTML href attribute</title> </head> <body> <figure><img src = "https://tutorialspoint.tw/videotutorials/images/tutorial_library_home.jpg"/> <figcaption>Tutorials Point Library of Tutorials</figcaption> </figure> </body> </html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP