Now that you have a basic understanding of HTML and have sen the "tags", it is time to create your first HTML document in the text editor and view it in the web browser.
Your HTML document should contain two parts, the head and the body. The head contains information about the name of the document. The body then contains everything else that is displayed as part of the web page.
The basic structure of an HTML page is:
<html> <head><title> <title of the document> </title></head> <body> <-- Comments: this is a horrible, antequated and tedious language!!!--> your work will be displayed here : : : : : : </body> </html>
Enclose all HTML work within <html>...</html> tags. Inside is first your <head>...</head> and then the <body>...</body>. Your web pages may look fine on most computers without these tags. However by using them, your web pages will be fully compliant with HTML standards and be compatibile with future web browsers.
Also note the comment tags enclosed by <!-- and -->. The text between the tags are NOT displayed in the web page but are there to put information that might be of use to yourself or anyone else that might look at the HTML behind the web page. When your web pages get complicated, the comments will be very helpful when you need to remember what you did four months ago when you attempt to update your page.
Here are the steps for creating your first HTML file:
1. Launch or switch to Simple Text.
2. Go to the text editor window.
3. Enter the following text (you do not have to press RETURN at the
end of each line; the web browser will word wrap all text):
<html> <head> <title>Learning HTML</title> </head> <!-- written at the Syllabus Conference in Sonoma by... --> <body> This is my HTML page. There are many like it, but this one is mine... </body> </html>
| Index of topics | next topic: Paragraphs and Breaks |