Computer Science Society Logo

HTML Tutorial


Hypertext Markup Language (HTML) is an easy to use tool for web page design. An HTML programmer can utilize programs from Notepad or vi (UNIX) to Microsoft Word in order to write their code; however, the file must be saved in text format. Lets take a quick run through the commands necessary to start your own HTML documents.

HTML Commands are called tags, and most tags, denoted in brackets <tagname>, require an end tag denoted by </tagname>. This way the user's browser knows when to stop executing the command (i.e. font specifications).

<html>
<head>
<title>HTML Necessary Components</title>
</head>
<body>
<H1>Lets Figure Out HTML</H1>
<P>HTML is broken into paragraphs with the p tag.</P>
</body>
</html>

The <body> tag and the </body> tag enclose the portion of the HTML script which will be rendered by the interpreter and outputted to the main window of the user's browser. The <head> tags enclose the area where the script information is specified e.g. the <title> which specifies the title of the page (shown on the browsers page title area).

We can specify body attributes as well:
<body bgcolor="#000000" text="#ffffff" background="bg.gif">

We specify the background color to be black, the text to be white, and the background image, bg.gif, will be tiled throughout the site's page. Some common tags:

Copyright 2002 Northeastern Illinois University.
Design and content by Kevin L. Stern
All Rights Reserved.
Material on this page may be reprinted for educational, non-commercial purposes
as long as Northeastern Illinois University is informed of such usage, all
material with an author listed is the intellectual property of that author
and may not be reproduced without permission.