Home >Web Front-end >HTML Tutorial >How to specify in HTML the URL of the page that a link points to?

How to specify in HTML the URL of the page that a link points to?

PHPz
PHPzforward
2023-09-17 16:49:061395browse

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.

Example

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete