Results 1 to 4 of 4

Thread: How to link documents in HTML

  1. #1
    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?...

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    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:

    <A HREF="Home.html">Home</A>

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    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:

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

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


    <a href="C:\HTML_Project\Link_demo.html">Demo link</a>
    The element content (Demo link) represent the part to be displayed.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    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:
    <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...

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,411,720.38258 seconds with 16 queries