Jump to: navigation, search

HTML hyperlink or link

From w3cyberlearnings

Contents

HTML - Link

Links are very important part of the HTML page. The Hyperlinks can be used to open a window in the same page or a new windows.

HTML - Syntax Hyperlinks

<a href="url">Link Name</a>

Where to open the link

Attributes value Example Description
target _black <a href="http://w3cyberlearnings.com" target="_black">Learnings</a> open a new window tab for the link document
target _self <a href="http://w3cyberlearnings.com" target="_self">Learnings</a> open at same window. (default)
target _parent <a href="http://w3cyberlearnings.com" target="_parent">Learnings</a> open the linked in the parents frame
target _top <a href="http://w3cyberlearnings.com" target="_top">Learnings</a> Remove all the frames, and loaded document to the top window.
target _frame_name <a href="http://w3cyberlearnings.com" target="frame_name">Learnings</a> specifies the frame name where the linked for a new window should be loaded.

Example 1

<a href="http://www.google.com">Google</a><br/>
<a href="http://www.w3cyberlearnings.com">w3cyberlearnings.com</a><br/>

Related Link



Navigation
Web
SQL
MISC
References