Forums

Linking a title to one line located further down in the same page (3 posts)

  1. Slowfinger
    Member
    Posted 3 years ago #

    Hi,

    is there a way to link a line in a static page, namely a title or subtitle, to the beginning of a paragraph or to another title located further down in the same page, a la Faq-style? And in a different page? Many thanks.

  2. petit
    Member
    Posted 3 years ago #

    This page at w3schools has the solution. You use named anchors, like
    <a name="gohere">Jump here</a>
    and you link to that place in the page using
    <a href="#gohere">Jump to Jump here</a>
    or form another page using
    <a href="otherpage.html#gohere">Jump to Jump here</a>

  3. Kafkaesqui
    Moderator
    Posted 3 years ago #

    You need to learn about how to use the id attribute to provide an anchor (fragment identifier) within a document:

    http://www.smart-it-consulting.com/article.htm?node=155&page=90#href-fragment-identifier
    http://www.w3.org/TR/html4/struct/links.html#h-12.2.3

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.