|
HTML Hyperlinks / HTML Links
HTML hyperlink / HTML links come in two forms: Local links, and Foreign links. The tag used to create an HTML link is the <A> or Anchor tag. This tag always uses the attribute: <A HREF="filename.extention"> in order to identify the file name to link to. Before closing this tag, provide clickable text for the file: <A HREF="http://www.myvgd.com">VideoGameDeals.com</A>.
Here is the result: VideoGameDeals.com.
If you would like the document to load in a new browser window, just add the following:
<A HREF="document.extension" target="_blank"> (if you leave it out, the document will load in the current browser window).
Free ASP Scripts Click Here!
Local Links get the file from the same folder as the requesting page. Use local links or sub links when all of your webpages are in one folder. Here is an example of local link: <A HREF="hyperlink.html">Visit my html page</A>. We call this local link because the url consists of only a file name. The link description will look like this: Visit my html page.
If you are working on a page in a Child Folder, and you want to call page under the Parent Folder, do the following: Example:<A HREF="http://www.domain-name.com/html/filename.html">. This will call the 'filename.html' page from the 'html' Parent Folder (it's best to do it this way, and define the absolute root or location of your folder/file).
Cheap ASP Hosting Click Here!
Foreign Links get a document file from anywhere on the Internet. Here is a 'Foreign Link' example...
<A HREF="http://www.videogamedeals.com">VideoGameDeals.com</A>: the best place to buy video games!
This is the result of the above example: VideoGameDeals.com: the best place to buy video games!
Note the Active text, 'Click here' is highlighted and underlined, and that there is Inactive text before and after the Active text. For example: To visit my html page, <a href="introduction.asp">Click here</a>. will look like: To visit my html page, Click here.
Image Links can be used by enclosing the image source tag within the anchor tag.
This is the tag to display an image <IMG SRC="image.gif">. (For displayed image examples, Click here).
Here is how you create an html image link: <A HREF="introduction.asp"><IMG SRC="/cliktoprogram/previous.gif"></A>.
The result will look like this: .
To "jump" to a section of your page, use the named anchor tag. Here is the syntax you need to create a named anchor: <A NAME="whatever">Description Link</A>. For example, if your page contains a report that has different sections, you can create a named anchor for the 'Report Summary' section by using the following: <A NAME="summary"><h1>Report Summary</A>. We have created a named anchor tag for the 'Report Summary' section of the page, so now we can create the link to that section of the page.
Here is how you create the link: <A HREF="#summary">Report Summary</A>.
The result is an Active link that "jumps" to the defined section of the page when clicked: Report Summary.
|
Introduction Image Display
|
|