| Contents | |||
| Commands | Headings | Lists | Images |
| Anchors | URLs | Tables | Sources and Tools |
HTML stands for `HyperText Markup Language'. It was designed for creating documents that would look nicer than plain text, but could be displayed on various hardware. It also allows to create `links' from one place of the document to another, or even to other documents and services available on the network.
Some commands which enclose a portion of the text (e.g. making it bold, or specifying a large-type heading, must have a beginning tag and a corresponding end tag. For instance, <em> starts slanted type (`emphasis'), and </em> ends it. In normal use you only need to remember a dozen or so such commands.
The simplest one is a `name', which lets one jump around in the document. I put the tag <a name=start></a> at the very beginning of this file. Now I will put in the anchor tag <a href=#start>, then the words `example link', and then the closing tag </a>: example link. If you are viewing this with a Web browser, you can click on that link and see what happens.
A slightly unusual but frequently used anchor is the one which sends mail instead of taking the user somewhere. It looks like this: <a href=mailto:behr@math.niu.edu>, closed as usual by </a>. The text (or image, or whatever) enclosed by these tags will become highlighted, and clicking on it in a Web browser will open up a mailer window, allowing you to send a letter to the specified address.
In the example above, the # indicates a named place in the current document; href="filename" would point to a file on the local machine, in the current directory (the quotes around the name are usually not required, but it's safer to use them); href="filename#label" is a link to a point in another file marked with the label (i.e. would try to find the tag <a name=label> in the file filename.
The URL can point to a specific resource on another computer.
In general, the format is:
[type of service]://[name of computer]/[path to a file]
For example, http://math.niu.edu/local/media-eqpt.html says: contact the WWW (Web) server running on the computer math.niu.edu using the HTTP protocol, and ask it to retrieve the file media-eqpt.html from the directory local. Many other services can be used in URLs: telnet, ftp, gopher, and so on.
weblint, which does
a good job of checking the syntax of your documents. The other is
webxref; it goes through the specified HTML files and
checks the validity of links within them. See man weblint
and webxref -help for more details.
Go back to the start of this document
Back to the NIU Math Web page