Saturn
HTML Basics

HOME

Can I see an HTML example?

The following is a basic example of an HTML file.

<html>
<head>
<title>Example HTML File</title>
</head>
<body bgcolor="#FFFFFF">
<!-- This is the comment tag -->
<p align="center"><h1>
Hello, and welcome to this sample page
</h1></p>
</body>
</html>

In this example, you can see how the HTML tags are organized. Everything in the HTML file is surrounded by the <html> and </html> tags. The head, in which the title is located, is before the body. All of the main content of the page is within the body. Within the body tag is a parameter named "bgcolor". This specifies the background color of the page. For example the value "#FFFFFF" specifies a white background, and "#000000" specifies a black background. More information on this topic is provided in the reference section. As long as you remember the basic syntax rules for HTML, you can easily understand how to insert more tags, that are not covered in this tutorial.

Copyright 1997 Web Developer's Workshop