Hypertext allows you to link information in a way that is not linear like the bound pages of a book, but associative, so that people can choose their own path through the information. Hypertext on the Web makes it possible to link your documents to many resources by other authors in other places.
I think that hypertext represents a unique mode of human communication that makes possible new ways of creating meaning. Some people even think a new kind of fiction is possible called "hypertext fiction," and that hypertext online represents a new kind of E-literacy.
To make hypertext, you create HTML files containing the anchor (A) element.
We've already seen how to use the A element like this:
You can link to the <A Href = "https://www.december.com/html/">HTML Station</A>
In this example, I used a full URL in the Href attribute. It is possible to refer to files on the same server using relative links.
If you are making a link from an HTML file to other files or resources on the same server, you can use relative path names. In a relative path name, you don't include the entire URL in the Href attribute, but only the path name to the file.
For example, the "hello.html" lesson is in the same directory as this file ("hypertext.html"). So I could make a link to that file just using the file name as the Href attribute, like this:
I can link to the <A Href="hello.html">Hello, World</A> lesson.
I might want to link to a file on my same server in another directory. For example, I can link to the "books.html" page of the MKE blue publication. The MKE books file is located at a directory two levels up from this one, in the places directory and the mke subdirectory. So my link from here would look like this:
You can check out <A Href="../../places/mke/books.html">MKE books</A>.
Remember, it is always "OK" to use the full URL in the Href attribute of the A element. Using relative path names just makes it easier to create a set of linked pages that are all located on the same server.
The linking methods we've seen so far in this lesson brought the user to the top of the page at the linked resource. You can used the named anchor technique to link to a specific place on an page.
You read about my last name on <A Href = "../../john/faq.html#lastname" >on my FAQ</A>.
In my FAQ, I have this line near where I talk about my last name:
Notice that this is the A element, but without the Href attribute. This gives me (or anyone) a way to force the user's Web browser to "skip down" to that section of the page.
Sometimes you might want to force a user's browser to go to a different page. You can accomplish this by browser redirection.
link:www.december.com/html -host:december.comto find out what web pages in the AltaVista search engine link to www.december.com/html but are not located on my own host december.com (I don't care to find out where I link to my own pages).
Check out some excellent examples of the use of hypertext:
Create a set of Web pages which demonstrate a non-linear, associative presentation of text (for example data, poetry, or fictional prose) and relative path names.