Getting started with HTMLAn example

An example

Without worrying about the details, you can get a general idea of what HTML markup looks like from the following short HTML source file:


<html>
<head><title>An example</title></head>
<!-- the title normally displays in the browser's
title bar -->
<body>
<h1>Getting started</h1>
<p>
Learning the news of Napoleon's
defeat at Borodino,
Talleyrand is
supposed to have said:
</p>
<blockquote>
<p><em>Voil&agrave; le commencement 
de la fin.</em>
</p></blockquote>
<p>
In English, this means: 
``This is the beginning of the end.''
</p>
</body>
</html>

Here is how your Web browser formats this HTML code: 

Getting started

Learning the news of Napoleon's defeat at Borodino, Talleyrand is supposed to have said:

Voilà le commencement de la fin.

In English, this means: ``This is the beginning of the end.''


Compare the HTML code with the formatted output to get an idea of how HTML works. Notice that HTML markup "tags" come in pairs marking the beginning and the ending of a logical structure: for example, <em>this is emphasized text</em>. Tags are surrounded with angle brackets, and the end tag differs from the start tag by having a forward slash / (not to be confused with the backslash \ that LaTeX uses to mark its control sequences). It does not matter if tags are written in upper-case letters or in lower-case letters: EM is the same as em; however, using lower-case tags is a good idea for future compatibility with XHTML.

Here are some items to notice about this simple example.


logo The Math 696 course pages were last modified April 5, 2005.
These pages are copyright © 1995-2005 by Harold P. Boas. All rights reserved.
 
Getting started with HTMLAn example