Learn HTML code for links or link tutorial.
<!DOCTYPE html> <html> <body> <a href="#">This is a link</a> </body> </html>
Replacing '#' with your page link.
By default, the linked page will be displayed in the current browser window. To change this, you must specify another target for the link.
<!DOCTYPE html> <html> <body> <a href="#" target="_blank">This is a link</a> </body> </html>
To use an image as a link, just put the 'img' tag inside the 'a' tag:
<!DOCTYPE html> <html> <body> <a href="#"> <img src="image-path.gif" alt="HTML tutorial" style="width:50px;height:50px;"> </a> </body> </html>
Use mailto: inside the href attribute to create a link that opens the user's email program (to let them send a new email):
<!DOCTYPE html> <html> <body> <a href="mailto:someone@example.com">Send email</a> </body> </html>