• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Links > Creating Other Kinds of Links

Creating Other Kinds of Links

You are not limited to creating links to other Web pages. You can create a link to any URL—FTP sites, files that you want visitors to be able to download, newsgroups, and messages. You can even create a link to an e-mail address.

To create other kinds of links:

1.
Type <A HREF=".

2.
Type the URL:

  • For a link to any file on the Web, including movies, sounds, programs, Excel spreadsheets, or whatever, type http://www.site.com/path/file.ext, where www.site.com is the name of the server and path/file.ext is the path to the desired file, including its extension.

  • For a link to an FTP site, type ftp:// ftp.site.com/path, where ftp.site.com is the server and path is the path to the desired directory or file.

  • For a newsgroup, type news:newsgroup, where newsgroup is the name of the desired newsgroup. For a particular message, type news:article, where article is the number (as shown in the header) of the individual article.

  • For a link to an e-mail address, type mailto:name@site.com, where name@site.com is the e-mail address.

  • For a link to a telnet site (like a library catalog), type telnet://site, where site is the name of the server you want to open the telnet connection to.

3.
Type ">.

Figure 7.15. You can create a link to all different kinds of URLs.


Figure 7.16. No matter where a link goes, it looks pretty much the same in the browser window. Notice that I've tried to create labels that flow with the body of the text—instead of a lot of "click me's". These are all real links (OK, except the private FTP site). You can see where they lead by opening this page in your own browser—http://www.cookwood.com/html4_4e/examples/links/links_other.html.


4.
Type the label for the link, that is, the text that will be underlined or highlighted, and that when clicked upon will take the visitor to the URL referenced in step 2.

5.
Type </A>.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint