www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons HTML Links Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
On the internet you must have already encountered with the clickable text or images called links. When you click on these links they take you somewhere else.

In HTML we have two types of links; internal and external. In this lesson we discuss external links and the discussion of internal links is left for the following pages.

Adding External Links:

The external links are defined with the <a> called anchor tag. The target page is defined by assigning the relative or absolute path to the anchor tag's href attribute. Lets see how can we link to the google search engine's home page:

<a href="http://www.google.com">This is google home page.</a>

This result will be:

This is google home page.

The text between the <a> and the </a> is used as the caption or description for the link. The browser normally displays the link text in blue underlined text.

The above is the example of a link to a different website. If you need to add a link to your own domain, you can specify its relative or absolute path to the anchor tag's href attribute.

<a href="http://pickatutorial.com/tutorial/html/thehrtag.htm"> The HR Tag </a>
<a href="thehrtag.htm">Text Marquee</a>

The result will be:

The HR Tag

The HR Tag

Note that both of the links point to one, single web page. The only differnce is that the href attribute of the first link takes an absolute path and the other takes a relative path.
Next >>> Lesson No. 23: HTML Bookmarks







Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.