HTML links
A link is the “address” to a document (or a resource) located on the World Wide Web or elsewhere within your own Web server.
<html> <title>HTML Links</title> <body> <a href="http://www.loopandbreak.com" > click here to open ayunor learning </a> </body> </html>
Open a Link in a New Browser Window or Browser Tab
As modern browsers support multiple tags, so if we want to open out link in new window or new tab, just add target=”_blank” to the anchor (a) tag. Please consider the following example :
<html> <title>HTML Links</title> <body> <a href="http://www.loopandbreak.com" target="_blank" > click here to open ayunor learning in tab </a> </body> </html>
creating a mail link
There are situations where we want to facilitate the client to directly mail to specified address without opening the mailing website. The mailto link will generate a new e-mail message in your default e-mail application. Example as :
<html> <title>HTML Links</title> <body> <!-- subject parameter is optional --> <a href="mailto:someone@somewebsite.com?subject=Hello mail"> click here to email with subject </a> <!-- without subject --><br> <a href="mailto:someone@somewebsite.com"> click to email without subject</a> </body> </html>
Creating an Image Link
provide image tag with location in the anchor tag attribute. Example as :
<html> <title>HTML Links</title> <body> <a href="http://www.loopandbreak.com"> <img src="logo.png" /> </a> </body> </html>