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?...
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?...
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>
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:
Example:<a href="url">Link text</a>
//Here 'url' term is the total location path of the HTML document which you want to link
The element content (Demo link) represent the part to be displayed.<a href="C:\HTML_Project\Link_demo.html">Demo link</a>
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...
Bookmarks