Other Links

Table 11-1 lists URL types that are not as well known or useful as mailto or ftp://, but are available. As with other links, place these URLs after the href attribute within the anchor element.

Table 11-1. Alternative link protocols

Type

Syntax

Use

File

file:// server / path

Specifies a file without indicating the protocol. This is useful for accessing files on a contained site such as a CD-ROM or kiosk application, but it is less appropriate over networks (such as the Internet).

News

news: newsgroup

news: message_id

Accesses either a single message or an entire newsgroup within the Usenet news system. Some browsers do not support news URLs, so you should avoid using them.

NNTP

nntp://s erver:port / newsgroup/article

Provides a complete mechanism for accessing Usenet news articles. The article is served only to machines that are allowed to retrieve articles from this server, so this URL has limited practical use.

Telnet

telnet:// user:password@server:port /

Opens a Telnet session with a desired server. The user and password@ elements are optional and follow the same rules as described for ftp://.

Gopher

gopher:// server:port/path

Accesses a document on a gopher server. The gopher document retrieval system was eclipsed by the World Wide Web, but some gopher servers are still operating.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.