Examples of HTML


You can use the View Source option in your Web browser to see the HTML source text for this page.

Most prominent header

Next most prominent header

Next level of header

Less prominent header

Even less prominent header
Least prominent header
HTML also supports boldface, italic and typewriter fonts.

Here is an example of preformatted text. It allows you to do 
      arbitrary indentation or    weird  spacings   and
arbitrary line breaks
and leave as many blank lines as you like.


You can also line things up in columns:

     Column 1       Column 2       Column 3
     Item 1         Item 2         Item 3 
     Thing 1        Thing 2        Thing 3 

You can include certain formatting tags like italics in preformatted
text, although it is not recommended.

You can include hyperlinks within preformatted text.
Listing format (usually used for things like listings of computer code or HTML) works the same way as preformatted text, but may show up in a different font (depending on your HTML viewer). The <blockquote> tag provides indentation of the type you would use for quotes, for example
If addiction is judged by how long a dumb animal will sit pressing a lever to get a `fix' of something, to its own detriment, then I would conclude that netnews is far more addictive than cocaine. -- Rob Stampfli
Note that for the HTML viewer to display the string <blockquote> (rather than treat it as an HTML tag), you need to use the &lt; and &gt; escape characters to display the special characters < and >. And in order to display those escape characters (rather than have HTML display them as < and >) you need to use the escape characters &amp; for the special ampersand character &.

There are 3 types of lists in HTML:

  1. An ordered list (such as this one)
  2. An unordered list
  3. A descriptive list
Here is an example of an unordered list: Here is an example of a descriptive list:
Here is the title of the first item
Here is the description of the first item
Here is the title of the next item
Here is the description of the next item
Maybe you want to put the titles in bold type
And the descriptions in plain type

Or maybe leave a line between the items
As was done for this item

Another title
And another example of a space between items

A paragraph tag <p> must be used to start a new paragraph, because HTML ignores line spaces. You can use a line break <br>
to move to a new line.

A horizontal ruled line, such as the one below, is a good way of breaking up sections of text.


Addresses, such as
Paul Coddington, Northeast Parallel Architectures Center, paulc@npac.syr.edu
can include hyperlinks.