Components of a Hyperlink
[Previous] [Main] [Next]

 
Hyperlinks are the foundation of the World Wide Web. Hyperlinks, sometimes called hypertext links, appear as highlighted areas on a web page that can be clicked on by a user to "jump" to a new document or resource.  
 
Hyperlinks are not just for referencing other HTML documents. They can be used to create links to a variety of resources, including audio, video, email, files, and more. Likewise, hyperlinks do not have to appear as text -- they can be buttons, images, or regions of images.  
 
There are three categories of hyperlinks:  
  • local resources
  • remote resources
  • specific areas within local/remote resources
 
There are three components of hyperlinks:  
  • destination URL
  • label (optional, used to reference a specific label within a document)
  • display elements (e.g., text or image)
 
The htmlHyperLink class represents hyperlinks in html++. htmlHyperLink inherits from htmlGroup, so it has the ability to contain other html++ objects, such as images or text. To add a hyperlink object to a document, instantiate an htmlHyperLink object with the proper URL, then use the << insertion operator to add the display element (the text, image, or button).  
 
Documents loaded from hyperlinks are usually displayed in the regular browser window. However, you can create hyperlinks that direct the browser to create a new window for a document display by specifying a target for the hyperlink.  
 


©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.