HTML Notes I

Minimalist HTML 4.01 Strict Code with external CSS file

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="AUTHOR" content="Dana Lee Ling">
<title>Document Title</title>
<link href="http://www.comfsm.fm/~dleeling/teal.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>Header on Page</h1>
<p>Paragraph Text</p>
</body>

</html>

Notes:

The Document Type Declaration (DTD or DOCTYPE)  tells the browser the type of file that follows and, in the case of HTML, the particular version of HTML being used.

The head section includes character set definitions, meta tags, document title, stylesheet links, and can include scripts.

The Content-Type tells the browser what character set to use.  There are many different possibly character sets.  HTML 4.01 often uses International Standards Organization character set 8859-1.  XHTML, a newer HTML standard, often uses Universal Text Format 8.

The link to a text/css tells the browser to obtain style information from a Cascading StyleSheet. 

The body contains the content of the web page.

Tags that begin with h followed by a number refer to a header level: h1, h2, h3, h4, with h1 being the largest.  The new XHTML specification will demand lower case tags, so get used to them now.

p tags are used as paragraph tags.