It is very easy to create simple web pages with HTML. Here are some basics.
Markup tags are distinguished from content by surrounding them with angle brackets, "<" and ">". The browser used to read the HTML pages is an interpreter for the tags.
The browser used to read the Web page is told that the page is an HTML page by starting the page with <HTML> and ending it with </HTML> .
Web pages have two parts, a header and a body. So a contentless, but legal page looks like this:
These are mostly used to lay out the content a user friendly way, and to make links to other pages.
This type of HTML instruction is called a logical instruction in contrast with the absolute instruction you might give to a word processor such as Microsoft Word. In the latter as you would specify the point size absolute, e.g., 20 points.
The HTML tag leaves the actual choice of font size up to the browser. The idea is that given the writer of the document does not know the characteristics of the device displaying her document it is best to leave the details up to the browser which does know something of the characteristics of the machine on which it is running. Often the text between <H1> and </H1> is the same as the title text.
HTML provides 6 other font point sizes, down to <H7> .. </H7>.
A site gains in power by cleverly linking documents together in a graph or tree structure.
To do this you use the anchor tag, A and give it the URL (uniform resource locator, or address) of the other document. There are quite of few forms of this tag. Here are two of the most common.
<A HREF="http://www.microsoft.com">The Evil Empire</A>
This would link you to the home page (most likely called index.html) of Microsoft Corp. Most browsers display the text between the tags in blue underlined. Clicking the link would lead to the Microsoft page being displayed.
<A href="http://www.scs.ryerson.ca">School of Computer Science Page</A>
A typical link to a home page on a multiuser system.
<A href="http://www.scs.ryerson.ca/~mes/courses/cps530/homework/a1.html">Assignment 1</A>
Web images come in two formats: gif and jpg (or jpeg). To place a picture on your page, do something like this:
<IMG SRC="me.jpg">
Assuming the file
me.jpg
is in the same directory as the HTML
file, the picture will appear at the point where you place this
tag. The IMG tag comes with many attributes such as ALLIGN.
The IMG tag places the image directly on the page. You can also use the A HREF tag with an image in which case the image is displayed on a new page when the user clicks the link.
The href's shown above are all absolute. The jpeg example is
relative. When you are building your own site, you will create
directories under you public_html directory for many of your pages.
You can link these pages using relative addresses. For example,
suppose you have a subdirectory
<A HREF="cps530stuff/examinfo.html">Exam information</A>
Somewhere (usually at the bottom) of your home page you should have your email address. HTML provides the mailto tag for this purpose. Its form is, for example,
<a href="mailto:mes@scs.ryerson.ca">mes@scs.ryerson.ca</a>
There are many books on HTML. Among the features you might want to look into are tables, and frames. You can also use HTML editors to create web pages, e.g. "Netscape Composer".
For a example of a page using the basic instructions click
It is very easy to put an Applet on your web page. Just add this tag.
<APPLET code="MyAppletClass" width=400 height=400> </APPLET>
The Applet tag accepts many more attributes than the compulsorary ones shown above
There is too much.
You might try Chris's HTML Tutorial Page.
Also interesting is the Yale University style guide.