How to Put an Anchor Tag Off of the Page

When you create an anchor tag, you are creating a link that opens in either a specific section of the same page as the link or on a different page than the link. If you want for the anchor page to open in a specific section of another page, you must have access to the HTML document for both pages. You must include some additional HTML formatting on each of these pages.

Instructions

    • 1

      Log in to your Web server.

    • 2

      Open the HTML page that includes the section to which you will link.

    • 3

      Insert the necessary code around the text in the section to which you want to link. For example, if you want to link to a section that includes the text "Water Bottles," the code would be:

      <a name="water">Water Bottles</a>

    • 4

      Publish the page.

    • 5

      Open the HTML page on which you will create the link to the anchor text.

    • 6

      Insert this code:

      <a href="http://www.waterbottles.com#water">

      Learn More about Water Bottles</a>

      Notice the "#water" tag matches up with the "water" tag included in Step 3.

    • 7

      Replace "http://www.waterbottles.com" with the URL of the page you modified in Step 3. Replace "Learn about Water Bottles" with the actual text you want to include on the hyperlink.

    • 8

      Publish the page.

Related Searches:

References

Resources

Comments

Related Ads

Featured