How do I link to a location in the middle of an HTML document?

Answer Posted / chaitu

We can link to a location in the middle of an HTML document. Using Following steps:

Label the destination of the link. There are two ways of labeling destination using Anchor:

o NAME attribute:

Example: <h2><a name="destination">Destination: Explanation</a></h2>

o ID attribute:

Example: <h2 id="Destination_ID"> Destination: Explanation </h2>

Link to the labeled destination: we can link with the destination in the same URL page and with Different URL page.

Example:

Same URL: <a href="#Destination"> Visit to destination</a> or

Different URL: <a href="thesis.html#section2">go to Section 2 of my thesis</a>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category