Microsoft FrontPage

Format of a URL


How do Web Addresses and Hyperlinks Work?

Web addresses use URLs. A URL ("uniform resource locator") has the following format:

protocol://machine[s].address.domain/
or
protocol://machine[s].address.domain/folder[s]/
or
protocol://machine[s].address.domain:port/folder[s]/filename.extension
or
protocol://machine[s].address.domain:port/folder[s]/filename.extension?parameters
or
protocol://machine[s].address.domain/~username/
or
protocol://machine[s].address.domain:port/
or
protocol:address
or
ftp://username:password@machine.address.domain/address/

(See the examples below to make this more clear.)

You must link some anchor text to a Web address by highlighting the anchor text and then use the Insert | Hyperlink command (or Ctrl+K). You must enter the URL (100% accurately) in the URL box, then press OK. You can also type a URL while working on the page in the Page View, and then hit the space bar or the Enter key -- your URL will become a hyperlink automatically. Manage hyperlinks with the appropriate Report in the Reports view.

If you don't know the URL, you can use the Create Hyperlink dialog box's "Use your Web browser to select a page or file" button (a picture of the globe with a magnifying glass), then browse for the URL in your browser. Return to FrontPage (with Alt+Tab), and your URL will be entered for you.

Protocols

There is no definitive list of all of the protocols, and there's no good rule for when they use the two slashes and when they don't. Here are the common ones (including whether or not they use two slashes).

Protocol Meaning and Use
http:// hypertext transfer protocol -- used for Web pages -- you'll use this one 99% of the time.
ftp:// file transfer protocol -- used for FTP, transferring files (only use this if there's an ftp server that's set up for your use)
mailto: mail protocol -- used with e-mail addresses
news: news protocol -- used for pointing to Usenet discussion groups
gopher:// gopher protocol -- the old gopher system that predated the Web and is now mostly extinct
https:// secure hypertext transfer protocol -- used with Secure Socket Layers (SSL) for secure transactions, like credit card information
telnet: telnet ("telephone network") protocol -- used to let you log in to a remote system (rarely used)

Examples

Here are some sample URLs:

Sample URLs
protocol://machine[s].address.domain/
http://www.yahoo.com/
http://maps.yahoo.com/
http://www.sec.gov/
http://www.altavista.digital.com/
http://nfl.com/
http://www.cam.ac.uk/
ftp://ftp.netscape.com/
gopher://garnet.msen.com/
protocol://machine.address.domain/folder[s]/
http://www.tivo.com/activate/
http://dir.yahoo.com/Entertainment/Humor/By_Topic/Advice/Web_Oracles/
http://ezone.org/ez/
ftp://ftp.netscape.com/pub/communicator/
gopher://gopher.sonoma.edu/1
protocol://machine[s].address.domain:port/folder[s]/filename.extension
http://howto.yahoo.com/chapters/1/1.html
http://www.tivo.com/what/intro.html
protocol://machine[s].address.domain:port/folder[s]/filename.extension?parameters
http://search.yahoo.com/bin/search?p=kumquats
http://search.yahoo.com/bin/search?p=Tori+Amos
http://quote.yahoo.com/q?s=tivo&d=v1
protocol://machine[s].address.domain/~username/
http://www.emf.net/~estephen/
http://www.emf.net/~estephen/antiweb.html
protocol://machine[s].address.domain:port/
You hardly ever see these anymore... but domains like http://www.yahoo.com:80/ used to be common, and might have different content than the regular spot.
protocol:address
mailto:estephen@zeigen.com
news:news.announce.newusers
ftp://username:password@machine.address.domain/address/
ftp://anonymous@ftp.emf.net/
ftp://steve:password@ftp.tivo.com/

File Types

The following is a list of the major types of files used on the Web. Every file you include must have the correct extension; otherwise, the file will not be able to viewed correctly by your audience.  (A GIF file with an extension of ".gf" or ".jpg" will not be displayed at all.)

Extension Meaning
.html Text: Hypertext Markup Language
.htm Text: Hypertext Markup Language (this extension is usually found on Windows machines; some Unix servers won't send this extension properly)
.txt Text: Plain text, no formatting (also known as "ASCII")
.gif Graphics: GIF file (Graphics Interchange Format)
.jpg Graphics: JPEG file (Jury of Photographic Experts Group)
.png Graphics: Portable Network Graphics file (not commonly used)
.wav Sound: Microsoft Wave Sound File
.au Sound: basic audio format sound file
.aiff or .aif Sound: Macintosh format sound file
.snd Sound: UNIX format sound file
.mpg Movie: MPEG movie (or sound) (Motion Picture Experts Group)
.qt or .mov Movie: QuickTime movie
.avi Movie: AudioVideo Interlaced (Microsoft) format movie

 


Home ] [ Links ] Formatting ] IE-Only Features ] Server Comparison ] Hints and Tips ]


Last Modified: January 22, 2000
E. Stephen Mack, estephen@zeigen.com