HTML Basics:
Icon: FrontPage Text Links

Title: Jan's Illustrated Computer Literacy 101
españolIcon: Change web
Did you want IE9+, Chrome, Firefox; Notepad? Icon: Change web

One of the essential features of HTML documents is the hyperlink, or hypertext. Remember that the H in HTML stands for Hyper. Clicking on a hyperlink opens a new page or performs some other action.

How do you create these links?

Creating a Link

In your HTML code you create a link by putting text or an image inside an anchor tag <a> </a> which has the HREF attribute. The value of the HREF attribute is usually the address (or hypertext reference) of the document that should display when the link is selected. For example a  link to My page might use the code:

<a href=""> My page</a>

Where you are:
JegsWorks > Lessons > Web

Before you start...

Project 1: Browser BasicsTo subtopics

Project 2: HTML Basics
    HTML CodeTo subtopics
    About HTML
    What You Need
    Code by hand To subtopics
    FrontPage/FPX Arrow - Subtopic open
    Icon: FrontPage FrontPage Arrow - Subtopic open OR FPXTo subtopics
        Formatting Bar
        Standard Bar
        Views Bar
    icon-footprintUsing FrontPage
    icon-footprintText links
    icon-footprintCreate web
    Images in HTMLTo subtopics
    FormattingTo subtopics
    TablesTo subtopics
    ConvertTo subtopics
    ExercisesTo subtopics


Incomplete URL

When someone tries to access a site using a URL that stops short of the filename, like, the web server looks for a default page to display.  The most common default names are index.html, index.htm, and default.asp. This is why index.html is used so often for the first page of a web site.

If there is no file with the default name, the web server may show a list of all the files in the folder. That is not usually what you want people to see! The server can be set to send an error message instead.

Contents list for directory

An incomplete URL opens the directory list

Icon Step-by-Step

Step-by-Step:Text Links in FrontPage

 Icon Step-by-Step

What you will learn: to use Save As for safety
to create a text link
to create a link to another page in the site
to create a mailto link
to verify a link
to remove a link without removing the text
to use Reveal Tags

 Start with:  Class disk, hector5.htm

Save As

It is easy to accidentally overwrite a document when you meant to save it with a new name. It is smart to save with the new name before you even make any changes.

  1. If necessary, open the file hector5.htm from the web folder on your Class disk.

  2. From the menu select  File  |  Save as .

  3. In the Save as dialog, click on the button As file.

  4. Use the path  a:\my docs\web\hector6.htm  to save your page to the web folder of your Class disk.

Text Link

On web pages you often see words and names turned into hyperlinks. You might see a word like 'soccer' turned into a link to a site about sports news. The name of a corporation like 'Microsoft' could be a link to Microsoft's home page. Hector wants to provide links to the company he works for and to some other sites that relate to things he mentions.

  1. Select the words  World Travel  in the first paragraph by dragging across them.
  2. Dialog: Insert Hyperlinks - www.worldtravelinc.netClick the button Button: Hyperlink Hyperlink on the Toolbar. A dialog appears.


  3. If necessary, select the default choice in the bar at the left = Existing File or Web Page.
  4. In the textbox URL, type the address of the web site for World Travel:

    Remember that this is a fictional company. The address does work.

  5. Link: World Travel - highlightedClick on the button OK. The selected text on the page changes. Since the text is still highlighted, the color used is the inverse color, yellow.
  6. Link: World TravelClick somewhere on the page to remove the highlighting. Now the words look like a link- blue and underlined.
  7. Create more hyperlinks with this method. Use the information in the table below. These are real places on the Web, at least for today.





    My Job - paragraph 1

    Type all the URL on one line.

    Note: There is an underscore between south and america.

    Universidad de Buenos Aires My Education - paragraph 1

    the pyramids in Egypt



  8. Class disk Since you already changed the file's name, you can click Button: Save the Save button to save the revised page as  hector6.htm  in the web folder on your Class disk.

Link to Page in the Same Site

Suppose Hector's son Ricardo has a page of his own in a subfolder of Hector's web space. You can use a relative path that tells how to get to Ricardo's page from Hector's. Until the page is there, the link will not actually work, of course. But you can create a link to the page anyway.

  1. The word Ricardo selected.Select the word Ricardo in the paragraph My Family.
    (The easy way is to double-click the word.)
  2. Dialog: Hyperlink with relative path to Ricardo's pageClick on Button: Hyperlink the Hyperlink button.
  3. Select on the left Create New Document.

  4. Type in the Name of new document textbox  family\ricardo\index.html 
    Folder tree: Desktop down to ricardoThis relative path says to move from the current folder which contains the current page hector6.htm down to the subfolder family and then to the subfolder ricardo, where you can find the file index.html.

    If you were ready to write a new page for Ricardo, you could use the New Page tab. This tab offers some wizards to help you create the page.

  5. Select at the bottom of the dialog Edit new document later. You will not be creating this page at this time.
  6. The word Ricardo is now a link.Click on OK and then click on the page somewhere to unselect the word. The word Ricardo is now a link, even though the page does not exist yet!

Email Link

In Internet Explorer, a mailto: link opens your email program with the address already filled in. Very handy!

Tip Other browsers may not understand the mailto: type of link. Always show the email address in text on the page, also.

Email link created automatically:

  1. At the bottom of the page on a new line, type the heading
     Comments and Suggestions 
  2. Assign it the style Heading 3 using the Style box.
  3. On the next line type the paragraph below as Normal text:

    Please send me email telling me what you think about this page and how I might improve it to
  4. Link: mailto - hchavez@worldtravelinc.netType a space after the email address. The email address automatically becomes a link once you type a space after it. Neat!

    Warning Be careful about having punctuation marks directly after a URL or an email address. When a program like FrontPage automatically formats your typing as a hyperlink, sometimes the punctuation gets included in the URL. Such a link will not work.

Email link by button:

  1. Select the words  send me email  in the paragraph you just typed.
  2. Dialog: Insert Hyperlink - email addressClick on Button: Hyperlink the Hyperlink button.
  3. Select on the bottom left- Email Address
  4. Type the following in the E-mail address textbox (Yes, there is an error in this address!): 

    mailto: will be automatically added in front as you type.
  5. Status bar: mailto link that has an errorClick on the button OK. The text you selected is now a link.
  6. Move your mouse pointer over the new link and look at the Status bar. It shows the address for the link. If you read carefully, you can see the error in the user name.
  7. Right Click Menu: Hyperlink PropertiesRight click on the link send me email and select  Hyperlink Properties . The dialog Edit hyperlink opens. It looks just like the dialog Create hyperlink.
  8. Change the user name in the email address to  hchavez .
  9. Click on the button OK.
  10. Again move the mouse pointer over the link and check the Status bar to be sure you have the correct address now=
  11. Class disk Click  the Button: Save Save button to save the page using the same name, hector6.htm.

Verify Links

To be sure that a link works you must actually try it! After all, even if you type what you meant to type, the link will fail if there is no document at that URL. For links to other sites you will have to be connected to the Internet.

In Preview view: Click on a link to load the document like you can in a browser.

In Normal view: Hold the CTRL key down while you click the link to download the page.

TipFrom inside FrontPage's Normal view, mailto: links will not work.

TipLink that use scripts will not work from inside FrontPage at all. You will have to test such advanced links from a browser.

Method 1: Key combo to follow a link in FrontPage.

You will see the FrontPage Normal view of the page, not what you usually see in a browser.

  1. Connect to the Internet, if necessary, and have your hector6.htm displayed in Normal view.
  2. Place your mouse pointer over the link Argentina. The pointer shape changes to Cursor: I bar shape  the I-beam cursor.
  3. Hold the CTRL key down.  The pointer changes shape to Pointer: Hand shape the hand shape.
    the link. FrontPage starts to load the page. 

    The Status Bar says "Requesting data..." Be patient. If the page won't load, try Method 2 below. It may be that the Internet itself or the site web server is just busy right now.

    When the page loads, you should see a web page with information about Argentina. If you don't, check the URL and correct any errors.

  4. Close this document window.

Method 2: Menu command to follow hyperlink in FrontPage

  1. Menu: right click: Follow HyperlinkRight click on the link the pyramids in Egypt  and choose  Follow hyperlink .
  2. After the page loads, close the document by clicking the X at the upper right of the document window. (Be careful not to close FrontPage!)

Method 3: Use your browser to view your page  and check the links.

  1. Open hector6.htm in your browser.
  2. Click on each of the links to see what pages come up. The mailto: links should open your email program to write a new message.

Remove Link

Link: Ricardo with cursor in word RicardoNow that you can create several types of links, you should know how to remove a link without removing the text. Since Ricardo's page has not been written yet, you can use the link to it for practice. You can also remove the text email link since the address is a link itself.

Method 1: Toolbar Button

  1. Click in the link Ricardo in the paragraph My Family. You do not have to select the whole word.
  2. Click on Button: Hyperlink the Hyperlink button.

    Dialog: Edit Hyperlink - removing the Ricardo link

  3. Click on Text Button: Remove Link the Remove Link button. The URL is removed from the textbox.

    Link:  "Ricardo" returns to normal textThe selected text returns to its normal state and the anchor tag is removed from the HTML code.

Method 2: Right Click Menu

  1. Right click in the link  send me email .
  2. From the popup menu select  Hyperlink properties .
  3. Click on Text Button: Remove Link the Remove Link button.  The words return to their normal state.
  4. Class disk Save the page using the same name, hector6.htm, by clicking on the Button: Save Save button.

Reveal Tags

When you add new material or make changes on your page while in Normal view, your new material may not be formatted as you expected. It's all depends on the tags! Your cursor may have been inside tags that you did mean to be inside of. Trying to correct these problems can be frustrating since often your cursor can't get to the right spot, outside the tag.

TipYou will not be able to use drag and drop or cut and paste to move text in or out of a tag while in Reveal Tags mode. This mode just allows you to get your cursor in the right spot to edit.


  • Link: extra characters caught in linkExtra characters: Characters before or after a link are caught in the link itself.
    When you drag to select text for a link and drag a little too far, these extra parts will be part of the link, like the parts above the carets ^ in the illustration. If you simply delete the space and retype, the new characters may be back in the link. Frustrating!
  • Wrong formatting: Your  new text picks up formatting from its neighbors that you don't want.
  • At the end: At the end of a table or division or page, you find that you cannot get the cursor to a new blank line.

Solution: Use the Reveal Tags command to show icons for all the tags while still in Normal view. By seeing where the tags actually start and stop, you can position your cursor in just the right spot for your editing changes. With this command you do not have to dig through all that HTML code.

  1. From the menu select  View | Reveal Tags . Your document pane changes to include icons for each starting and ending tag.
    Now you can put your cursor inside or outside the tags, as you please. And you don't have to hunt through a lot of HTML coding to do it!
  2. Move your mouse over some of the tags to see the ToolTip. This will be very helpful when the tags have attributes or styles included. Hover over an A tag to see the hyperlink.

  3. Use the key combo CTRL + / to toggle Reveal Tags off and on and off again. If you find that you use Reveal Tags a lot, you will want to learn this key combo!
  4. Check your links to be sure you have just the right characters included. Make repairs if necessary.

TipAnother method is to switch to HTML view and edit where you can see all the coding. It can be difficult if the tags have a lot of attributes.