Create the required elements
Type the following into a blank document in a text editor such as
NotePad (Windows) or TextEdit (Macintosh):
Line 1: <html>
Line 2: <head>
Line 3: <title> </title>
Line 4: </head>
Line 5: <body>
Line 6: </body>
Line 7: </html>
Give the page a title
Place the cursor between <title> and </title>
Type in a title, such as My Page
Enter and format text
Place the cursor after <body> and press Return to make
Type <h1>Hello World!</h1>
Save the file with the name exactly index.html and choose
Open: File in your browser (Internet Explorer or Netscape)
to view your work.
What did we just do?
Creating a World Wide Web page involves the use of HTML, which is
a subset of SGML. Gee, thanks... Really, what you do to make a page
for the web is create a text document with special marks inserted into
the text that are interpreted by a browser. This paragraph, for instance,
begins with a mark that looks like this: <p>. This tells the browser
that all the text following this mark is a paragraph. To politely tell
the browser I am done with this paragraph, I use this code: </p>.
That is how this all works. You open a tag inside of "< >" and
close it with "</ >". Anyone who remembers WordPerfect for DOS
has had experience with this sort of thing. If I want an word to be
in italics, I surround the word with these tags: <i>WOW!</i>,
and it looks like WOW! when interpreted by a browser.
Really, all we need to learn is about 20 different codes to put inside
those brackets and some attributes that modify those codes. Easy class,
Except there is the small problem of doing this well...