HTML: Anchor Tag Example II

Author: Ronald S. Holland
at
Total Application Works




To contact us



HOME] Consulting Design Maintenance Project Testing Training Turnkey Java C++ SQL HTML JavaScript ]

© 2002 - 2013 All Rights Reserved Total Application Works


    Tell a friend about this site (copy and paste the following HTML page into a file (e.g., using Notepad).)
    <html>
    <head>
    <title>Example of a link </title>
    </head>
    <body>
    <a href="http://sumtotalz.com/TotalAppsWorks/HTML/What_is_a_Link.html">
    Anchor Tag II</a>
    </table>
    </body>
    </html>


Introduction

The purpose of this tutorial is to show you how to write a HTML page using the ANCHOR tag. What is HTML (HyperText Markup Language)? HTML is a layout/tag language that is used to organize text and/or images on a web page. In the following example, we will show you the code for our page examples that use the ANCHOR tag. The <ANCHOR> tag allows the user to jump to a different block/section in the same HTML document or to a different HTML document/web page. You will find that links are found in virtually all Web pages. Links allow users to navigate from page to page with a simple click of the mouse.

What is a link?

A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a section within the current document or a to a new document/web page. In a HTML page, links are specified using the <a> tag. You can be use the <a> tag in two ways by:

  1. Using the href attribute to create a link to another document, or
  2. Creating a bookmark inside a document, by using the name attribute
In the following figure, we will show an example of how to create a link to another web page.

Source Code Displayed by your Browser
<a href="http://sumtotalz.com/TotalAppsWorks/HTML/HTML_TOC.html">HTML Resources</a> HTML Resources

Click on HTML Resources above
Figure 1: Link to another Web Pgae Example


In the above Figure 1;
  1. <a> - is the start of an anchor tag that allows the user to link to another web page or another section within the same web page'
  2. href - the href attribute specifies the link's destination;
  3. </a> - is the end of an anchor tag.





HOME] Consulting Design Maintenance Project Testing Training Turnkey Java C++ SQL HTML JavaScript ]


To contact us

© 2002 - 2013 All Rights Reserved Total Application Works