How to Link to a Specific Spot on a Page - Another Approach Helpful tips, conversations and pointers on how to build, make or create your own small business website solution. How to build a website resources. Use guides to create your own website.
Brand. Website. Business. Build Yours!
Call us toll free +1 (800)-548 9824 for your full service small business website solution: website management technology, services, and support. Build a website today!
Brand. Website. Business. Build Yours!
Brand. Website. Business. Build Yours!
Brand. Website. Business. Build Yours!
Brand. Website. Business. Build Yours!
Brand. Website. Business. Build Yours!
Brand. Website. Business. Build Yours!

Forums  >  Build, Make or Create your own Website  >  How to Link to a Specific Spot on a Page - Another Approach

How To Link To A Specific Spot On A Page - Another Approach

Published on 01/28/2010 by Wayne Foster
When you are designing your website, you may have a requirement to link to a specific spot on a page and there is another way other than the XHTML compliant way to link within a page approach.
 
The Old Way
This way of jumping to a spot within a page is not as good an idea for a few reasons. The "name" attribute has been depreciated for XHTML, and using tags you already have on your page like <h1>, <p> or any other places you can add id's will leave you less clutter on your page. (i.e, you can use them for css styles, javascript and a lot more.)
 
With that said, just in case for some reason you want to try the other way, here it is. As with the linking method, you can call it anything you'd like, try not to use spaces though as they look rather messy in an address bar.
 
1) Naming the Target
Choose a spot on the page you want to link to and make an anchor by making a link mostly as usual but instead of "href" add "name" inside it.
 
Here's an example:
 
<a name="whatever-you-want-to-call-it">something here so you don't have an empty tag</a>
 
2) Linking to your new jump spot
This step is the same as for the previous method:
 
<a href="#whatever-you-want-to-call-it">Link Text Here</a>
 
See, either way you choose to link within the page it's fast, easy and can be very helpful to your visitors.

    Post A Comment

Wayne Foster
Posted:January 28, 2010 Subject: How to Link to a Specific Spot on a Page - Another Approach Comment

When you are designing your website, you may have a requirement to link to a specific spot on a page and there is another way other than the XHTML compliant way to link within a page approach.

 

The Old Way

This way of jumping to a spot within a page is not as good an idea for a few reasons. The "name" attribute has been depreciated for XHTML, and using tags you already have on your page like <h1>, <p> or any other places you can add id's will leave you less clutter on your page. (i.e, you can use them for css styles, javascript and a lot more.)

 

With that said, just in case for some reason you want to try the other way, here it is. As with the linking method, you can call it anything you'd like, try not to use spaces though as they look rather messy in an address bar.

 

1) Naming the Target

Choose a spot on the page you want to link to and make an anchor by making a link mostly as usual but instead of "href" add "name" inside it.

 

Here's an example:

 

<a name="whatever-you-want-to-call-it">something here so you don't have an empty tag</a>

 

2) Linking to your new jump spot

This step is the same as for the previous method:

 

<a href="#whatever-you-want-to-call-it">Link Text Here</a>

 

See, either way you choose to link within the page it's fast, easy and can be very helpful to your visitors.

Basic Website CMS Solution
Voip-PBX Website CMS Solution
Business Website CMS Solution

View More: [ 01 ][ 02 ]

$ 7.95 domain name registration.
Build your complete web solution: Brand, Website, Business.
Buy your domain name
New 1 Year Registrations just $ 7.95!
Multi-year Registrations, Renewals, & Transfers just $ 7.95/year!
Brand. Website. Business. Build Yours!
Build a web site Website Management Technology Website Services
Website CMS Solutions Website CMS Applications
Business Opportunities Customer Service Company
AJIBOYE is a website solutions provider serving Connecticut (CT), New York (NYC), New Jersey (NJ) and nationwide!

Website design by AJIBOYE. Website powered by ASD Website Automation CMS+ v. 3.06.00
© Copyright. AJIBOYE. All rights reserved

Comodo SSL Certificate
AJIBOYE. Brand. Website. Business. Build Yours!Company InformationProfessional Website ServicesAffiliate Website CMS SolutionWebsite Cms FeaturesWebsite Content Management SystemsEcommerce Website CMS SolutionBusiness Directory ManagerPhoto Albums ManagerDocuments ManagerMagazine ManagerBusiness Directory ManagerWebsite ReportsWebsite HostingPersonal Project ManagerPut The Internet To Work For You Have A Marketing Plan.PartnersPut The Internet To Work For You Build Your Brand.