How to specify the URL of the page the link goes to in HTML?

HTMLWeb DevelopmentFront End Technology

Use the href attribute to specify the URL of the page the link goes to in HTML.

Example

You can try to run the following code to implement 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"/>
         <figcaption>Tutorials Point Library of Tutorials</figcaption>
      </figure>
   </body>
</html>
raja
Published on 14-Mar-2018 16:17:24
Advertisements