![]() |
Getting Started | |||||
|
Who was it that said "The longest
journey starts with but a single step"? While the finished product
may appear daunting, learning to build web pages is a clasic example.
I'll begin with the basics, and gradually build into some of the more
complex tricks and treasures.
When you open a text document in a web
browser, you get exectly what you see here... simple text. In order to
make this a web page, you would have to change a few things. First, the
extension would change from .txt to .htm or .html (for those of you who
are coming to the fray from the mac world, PCs and Unix machines use something
called an "extension" to tell applications what kind of file
this is - the extension is the part of the filename that comes after the
period).
See how the tag at the beginning is enclosed
in brackets (the "less-than", "greater-than"symbols)?
every element in a web page, including the page itself, must be surrounded
by a tag of some sort. These tell the browser what to do with the elements.
If you put this page on a web server and
opened it in a browser, it would look like this:
So far, so good, right? Now, inside the
<head></head> tag, there are a couple of other elements. most
important of these is the one that displays the title at the top of the
browser window. Wanna guess at this one? That's Right! It's <title></title>,
like so:
When you look at this page in a browser,
it looks like this:
|