HTML Hyperlinks (Links)

A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document.

When you move the cursor over a link in a Web page, the arrow will turn into a little hand.

Links are specified in HTML using the <a> tag.

The <a> tag can be used in two ways:

  1. To create a link to another document, by using the href attribute
  2. To create a bookmark inside a document, by using the name attribute


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


<a href=””>learnwebdevlopement</a>

the link will display like this


The href attribute specifies the destination of a link.

Name Attribute

Name attribute is useful for link within the doucment. for example, if you want see bottom of the page means

create link to see bottom page

<a href=”#bottom”>Go to bottom</a>

it will display like this Go to bottom

create link and give the name bottom.

<a name=”bottom”>bottom</a>

it will display like this This is Bottom

Target Attribute

The target attribute specifies where to open the linked document.


click this link it will open new tab

Title Attribute

The title attribute is used to type a short description of the link.
place the cursor over the link, you will see the text “Learn Webdevlopment” appears.


<a href=”” target=”_blank” title=”LearnWebDevlopment”>Learn Webdevlopment</a>

Learn Webdevlopment


>&Gt;Next Images

Posted in Html