Basic Format for HTML document
Basic Format for HTML Documents
HTML documents must contain the following elements in the
correct order as shown below. While a large number of
additional tags and options are available, the outline shown
below contains all of the elements that are required to
create a Web page.
<HTML>
<HEAD>
<TITLE>Place any title here</TITLE>
</HEAD>
<BODY>
Place text for Web page here. This text will be the only
thing displayed when the page is viewed by the Web browser
(Netscape, Microsoft Explorer, Mosaic, etc.).
</BODY>
</HTML>
If the above text is placed in a file (saved with a .htm
extension) and viewed with a Web browser, the following page will
result.
By adding only a small number of optional commands (Tags), it
is possible to create much more aestically pleasing looking
documents.
<HTML>
<HEAD>
<TITLE>A Somewhat Better Web Page</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffee" TEXT="#000000">
<H1> Level-1 Heading </H1>
<HR>
<P>
Shown above is a <U>Horizontal Rule</U>.
<P>
Text in the <I>BODY</I> section will be the only
thing displayed
when the page is viewed by the Web browser
(Netscape, Microsoft Explorer, Mosaic, etc.).
<HR>
<P ALIGN="Center">
<I>Thank you for visiting.<BR>
This page was created before now<BR>
and was written by somebody.</I></P>
</BODY> </HTML>
Return to Main
Document
|