Web Development

  Homes arrow Web Development arrow Chapter 9: Navigation within a document
 Webmaster Tools
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
Password Strength
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Forums Sitemap 
Weekly Newsletter
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
  >>> SIGN UP!  
  Lost Password? 

Chapter 9: Navigation within a document
By: Developer Shed
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating:  stars stars stars stars stars / 0

    Table of Contents:

    Rate this Article: Poor Best 
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article



    Wouldn't it be nice to be able to click a link and move to another area within the same page? Well you can. You will use the normal anchor tag (<A HREF>) except instead of placing another page in the quotes, we will use a named portion of the document, which begins with a #. To name the part of the document, go to the area you want to name, and place <a name="name_of_area">text</a>, then to call a link to that place from somewhere else in the document, use <a href="#name_of_area">text</a> Example:

    <a href="#section2">Go To Section 2</a><br>
    <a name="section2">Welcome To Section 2!</a>

    Go To Section 2
    Welcome To Section 2!

    Once you have the section named, you can even call it from other documents... for example, if you named a section in index.html called section2, you could call it from bookmarks.html using <a href="index.html#section2">.

    Your own HTML page...

    Add the following to your HTML page ("Home.htm") (the blue text is what to add).

    <head><title>My Home Page</title></head>
    <!-- The body starts here - and a background image is loaded -->
    <body background="bgnd.gif">

    <!-- This is a heading, in blue -->
    <center><font color="Blue"><h1>YOURNAME's Home Page</h1></font></center>
    <!-- This is a horizontal line -->
    <!-- My name and the two images are all part of a link - which is a "mailto" link -->
    This is the home page of <a href="mailto:YOUR EMAIL ADDRESS"><img src="bullet.gif" border=0><b>YOURNAME</b>.<img src="bullet.gif" border=0></a>
    <p>Type something about yourself here. Describe briefly who you are and what you do for a living. Remember to use bold and italic text, for emphasis.</p>

    <!-- This is an ordered list of sections in the document -->
    <!-- The first item is a link to a section labelled FavLinks -->
    <li><a href="#FavLinks">My Favourite Web Sites</a></li>
    <!-- The second item is a link to a section labelled Hobbies -->
    <li><a href="#Hobbies">My Hobbies</a></li>


    <!-- This command labels this point as section FavLinks -->
    <a name="FavLinks">
    <h2>My favourite Web Sites</h2>


    <!-- This list is an unordered list -->
    <li> <a href="http://www.xencon.com">Xenon Web Design</a> </li>
    <li> <a href="http://www.microsoft.com">Microsoft</a> </li>
    <li> <a href="http://www.sybase.com">Sybase</a> </li>
    <li> <a href="http://www.sybase.co.za">Sybase South Africa</a> </li>


    <!-- This command labels this point as section Hobbies -->
    <a name="Hobbies">
    <h2>My Hobbies</h2>
    Talk about your hobbies here.


    Save the text file as "Home.htm".

    << Chapter 8


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Web Development Articles
    More By Developer Shed



    - On Page SEO for New Domains
    - Improve Your Site`s Speed
    - Safari Books Online Review
    - Creating an Estore From the Ground Up
    - Most Common SEO Mistakes Developers Make
    - Making the Most of Your Titles and Meta Desc...
    - Five Ways Using Flash Can Damage Your Site
    - A Web Designer`s Guide to Colors
    - Use Webstarts to Create a Free Site
    - More Than Just Looks. How Your Web Design C...
    - How to Design Content Pages
    - Mint Review
    - Make Your WordPress Website Look Professional
    - How to Create a Mobile Web Site
    - Meta Tags: Still Useful?

    Developer Shed Affiliates


    © 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap