10 year anniversary

Home


Hosting Directory


Host Search


Request a Quote


Web Hosting News


Hosting Forums


Web Host Awards


Guides
Web Hosting
Choose a Host
Dedicated Servers
Reselling
Free Hosting
Articles
Industry News
HTML Explained
Advanced HTML
ASP Explained


Free Listings on Web Host Directory and drive buyers to your Web Hosting Business





HTML Back to Articles & Guides 
Hyperlinks

The Hyperlink is what distinguishes a web page from most other types of pages. It enables the reader to 'click' on the link with the mouse cursor so the linked page can be displayed.

Hyperlinks are defined with the <A> tag, and is ended with </A>. It is known as the anchor tag. However it must always be used with an attribute, such as the HREF attribute which defines the destination page for the hyperlink, for example:

<A HREF="http://www.webhostdir.com/default.asp">Take me to the Web Host Directory</A>

produces: Take me to the Web Host Directory

As you can see, everything between <A> and </A> are highlighted and underlined by default, so the reader can distinguish hyperlinks from normal text.

The above example uses an absolute URL to take the reader to the desired page on any server. You could only specify a relative URL where the page resides in the same directory, or one relative to the page's current directory if you wish.

It is also possible to link to different places within the same file. You must do two things to achieve this. You must place a marker at the destination point, by using the <A> anchor tag with the NAME attribute to specify a name to that point within the file, for example:

<A HREF NAME="hyperlinks">

This will specify a named point within the file to be called 'hyperlinks'.

You can then link to it with the following:

<A HREF="#hyperlinks">Click here to be taken back to the start of the 'hyperlinks' section in this document</A>

Click here to be taken back to the start of the 'hyperlinks' section in this document

Notice that the text after the # signifies the named point within the file to jump to.

You can also link to named points within other files as follows:

<A HREF="anotherfile.html#hyperlinks">......</A>



  Contents     Page 7 - Images   |  Guides

Related Guides
Advanced HTML
ASP Explained
Related Areas
Search for a web host

Featured Hosts
Aplus.Net: AWARD-WINNING Hosting at Small Business-Friendly Prices (from $5.95 / mo.) - FREE Setup - FREE Domain - 99.9% Uptime - 24/7 Support - LIMITED TIME SALE!
hostgator.com: CALL NOW 1-866-96-GATOR >> 24/7 >>PHONE AND INSTANT MESSENGER SUPPORT >>A TON OF SPACE!! >>> TONS OF >>BANDWIDTH! >> FREE SETUP >> DOZENS OF FREE SCRIPTS INSTALLED >>
Softlayer Technologies: Dedicated Servers, free services & private network; Come to SoftLayer for best in class facilities, technology & customer support
WebIntellects: Tired of bait and switch hosting? Low cost gimmicks? So are we. See why we are the provider of choice in over 80 countries world-wide!
The Planet Hosting: Dedicated Server Deals: As the leading dedicated server hosting provider, The Planet always gives you the best prices on website hosting. See all our deals.
US2.net: Offers customers another choice in hosting. Our complete and Plus web hosting packages are generous in specification, with a range of essential features, but best of all at an amazing price.
IX Web Hosting.com: As low as $0.81/mo per hosted domain name! FREE Domain Registration, 200,000MB to UNLIMITED Web Space & FREE Website Builder!
SuperbHosting.Net: Starting as low as $2.50/m, 2 FREE Domains, FREE Setup + WebSiteCreator + Blog Software, Unlimited Traffic, 200 GB HD, your own IP, 2500 Emails, daily backups & more, connected to our coast-to-coast backbone.
$5.95/mo – 6 MONTHS FREE: UNLIMITED Disk Space, UNLIMITED Bandwidth, FREE Domain, FREE Site Builder, FREE Setup, and MORE!
Crystaltech.com: Host with the best! 3 FREE months with a waived setup on any new dedicated server! Call 1-877-323-HOST or visit CrystalTech.com today!
Hivelocity.com: Core2Duo- $119/mo, Core2Quad- $149/mo, Quad-Core Xeon- $185/mo, Dual Quad-Core Xeon- $299/mo, Zero Setup- Free Ram Upgrades
Ace-host.net: 500 GB Disk Space, 5,000 GB Bandwidth, Host up to 20 Domains, Unlimited Email Addresses, 24/7 Technical Support, 99.9% Uptime Guarantee, 30-Day Money Back Guarantee - Starting at $6.95/month
Rackspace: Rackspace delivers fully managed windows and linux hosting solutions, a Zero-Downtime Network(tm) and 24x7x365 Fanatical Support(tm).

Most Popular Web Hosting Searches Advertisers, Get Listed Here. 
LYPHA.COM - Recommended
2.5TB Storage, 20TB Transfer - $3.95/mo. Free Domain Name.... more
Netzonehost - Best Value
Linux Hosting From $4.99 per month with great added value, over 30+ free scripts, Mysql and from 300GB Data Transfer!... more
Mochahost.com
From $3.71/mo; cPanel, Unlimited mailboxes, Free Site Builder w/ 500+ templates, PHP5, MySQL5, JSP, Ruby, SVN, 20,000 MB space & ... more



Unix/Linux Shared Hosts
Netzonehost - Best Value
Get 15GB Data Storage, 300GB Data Transfer & Great Bonuses ... more
LYPHA.COM - Recommended
2.5TB Storage, 20TB Transfer - $3.95/mo. Free Domain Name.... more
REG2C.COM
Reg2c.com is an ICANN accredited registrar company.Beside ... more
Unix/Linux Dedicated Hosts
Versaweb Hosting
Get the dedicated hosting solution you need, starting as ... more
Peer1 Network
Boost your performance online with PEER 1's award-winning ... more
Steadfast Networks
High level of service& low price Dedicated Servers & ... more
Top 3 Shared Hosts
LYPHA.COM - Recommended
2.5TB Storage, 20TB Transfer - $3.95/mo. Free Domain Name.... more
REG2C.COM
Hosting Packages for beginners to professionals with the ... more
IX-ONE.COM Domain Company
IX-ONE.COM is a provider of world-class products at ... more
advertisers: Get listed here
> About us
> Terms & Conditions
> Privacy Policy
> Advertising
> Contact us
> Forum Archive
> Sitemap
> RSS  RSS
RECOMMENDED BY
  Copyright © 1997-2008, Web Host Directory Ltd.  Web Hosting Directory