Change Font Size:

Use hyperlinks open the HTML document links

Let us look at two examples

The establishment of a hyperlink

This example demonstrates how to create HTML document hyperlinks.

Will be a picture as a hyperlink

This example demonstrates how a picture as a hyperlink, click on a picture that can be connected to other documents.

A href attribute and

HTML used <a> to indicate hyperlinks, English called anchor.

<a> Can point to any one source of documentation: an HTML page, a picture, a video documentation. Usage is as follows:

  <a Href="url" /> display text links </ a> 

Click on <a> </ a> of the contents of documents to open a link, href attribute says the document path links.

For example, link to www.nt22.com site home page, this can be said:

  <a Href="http://www.nt22.com/" /> HTML AND XHTML TUTORIAL www.nt22.com Home </ a> 

Attributes target

The use of target properties in a new document window open links.

  <a Href="http://www.nt22.com/" target=_blank> HTML AND XHTML TUTORIAL www.nt22.com Home </ a> 

Example

Attribute title

Use the title attribute that allows the mouse to hover in the hyperlink, that the hyperlink text notes.

  <a Href="http://www.nt22.com/" title = "NT22.com network tutorial " /> NT22.com network tutorial site </ a> 

If you want to visit more than Notes, can be used as a newline.

  <a Href="http://www.nt22.com/" title = "NT22.com network tutorial " /> NT22.com network tutorial site </ a> 

Example

Attribute name

Use name attribute Jump to a file can be designated location.

Use name attribute, it is necessary to provide a right. First, set the name name, and the second is to set a href at this name:

  <a Href="#C1" /> See Chapter 1 </ a> 
  <a Name="C1" /> Chapter 1 </ a> 

Example

Name attribute is used to create a directory of the document section (table of contents). Each chapter has established a link on the document at the beginning, the beginning of each chapter are set Name attribute. When the user clicks a link in a chapter, the contents of this chapter on display at the top.

If your browser can not find Name designated part of this, it shows that the beginning of the article, not the error.

Links to email addresses

In the site, you will often see the "Contact Us" link, a click on the link, it will trigger your e-mail client, such as Outlook Express, then display a new mail window. By <a> can achieve this functionality.

  <a Href = "mailto:info@sina.com" /> Contact Sina </ a> 

Example