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>