Home >Web Front-end >HTML Tutorial >How to specify in HTML the URL of the page that a link points to?
Use the href attribute to specify the URL of the page that the link goes to in HTML.
You can try running the following code to implement the href attribute -
<!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="How to specify in HTML the URL of the page that a link points to?" > <figcaption>Tutorials Point Library of Tutorials</figcaption> </figure> </body> </html>
The above is the detailed content of How to specify in HTML the URL of the page that a link points to?. For more information, please follow other related articles on the PHP Chinese website!