Social Icons

Friday, February 1, 2013

HTML Links : (English Version)

For Bengali Version, Click here : এইচটিএমএল লিংক : বাংলা 
HTML Links

Links are found in nearly all web pages. Links allow users to click their way from page to page.


HTML Link Syntax

The HTML code for a link is simple. It looks like this : 

<a href=“url”>Link text</a>

The href attribute specifies the destination of a link.

Example :

<a href=“http://www.deshiit.blogspot.com/”>Visit HTML to Web Page</a>

HTML Links : The target Attribute

The target attribute specifies where to open the linked document.
The example below will open the linked document in a new browser window or a new tab:

Example : 

<html>
<body>

<a href="http://www.deshiit.blogspot.com" target="_blank">Visit deshiit.blogspot.com!</a>

<p>If you set the target attribute to "_blank", the link will open in a new browser window/tab.</p>

</body>
</html>

Result : 


If you set the target attribute to "_blank", the link will open in a new browser window/tab.



No comments:

Post a Comment