Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-11-2009
Member
 
Join Date: Jan 2009
Posts: 97
How to link documents in HTML

Hi,

I am designing a HTML project and I need you help to sort-out my problems.

Is there any method to link one html document in another html document.?If yes then which html tag is used for that?

Can we link within document?...
Reply With Quote
  #2  
Old 17-11-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: How to link documents in HTML

The chief power of HTML comes from its ability to link regions of text or images to another HTML document.

In HTML anchor i.e <A>tag is used for this linking purpose

See the below process to use anchor tag:

i). Start with <A t(i.starting of anchor tag) .
ii). Provide the document which you want to pointed by entering the parameter HREF="file_name" followed by a closing bracket: >
iii). Enter the text that you want to works as the hypertext link in the current document.
iV). Finally Enter the ending anchor tag i.e </A>.

See below example:

Quote:
<A HREF="Home.html">Home</A>
Reply With Quote
  #3  
Old 17-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: How to link documents in HTML

Hi friend , I think below information will help you to understand the linking concept.

The HTML anchor <a>, is used to define hyperlinks as well as anchors.

Html link syntax:

Quote:
<a href="url">Link text</a>

//Here 'url' term is the total location path of the HTML document which you want to link
Example:


Quote:
<a href="C:\HTML_Project\Link_demo.html">Demo link</a>
The element content (Demo link) represent the part to be displayed.
Reply With Quote
  #4  
Old 17-11-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: How to link documents in HTML

I recommend you to refer below example of linking within documents in the HTML.

e.g:

An author may create a table of contents in which entries will link to header elements H2, H3,H4, etc., in the same html document. Using the anchor we can write:
Quote:
<H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2><A name="section1">Introduction</A></H2>
...section 1...
<H2><A name="section2">Some background</A></H2>
...section 2...
<H3><A name="section2.1">On a more personal note</A></H3>
...section 2.1...
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to link documents in HTML"
Thread Thread Starter Forum Replies Last Post
Changing link color when moving mouse over link in HTML Cade Software Development 5 22-01-2010 07:46 PM
How to link CSS into the HTML file? Zhankana_n Software Development 5 23-12-2009 03:02 PM
Link HTML and Powerpoint Connect_Me Software Development 3 07-04-2009 11:54 PM
How to convert htm (or html) pages into PDF documents ? EricTheRed Tips & Tweaks 0 17-03-2009 05:21 PM
VB6.0 link html page Taipai Software Development 3 26-01-2009 06:34 PM


All times are GMT +5.5. The time now is 02:39 AM.