HTML 3.2 by Example

Styles come in two types.

Physical styles are displayed by the browser program exactly the way you specify them:

  <B> Bold </B>
  <I> Italic </I>
  <U> Underline </U>
  <TT> Typewriter (fixed width) font </TT>

 

There are also so-called logical styles. They way they are rendered can vary from one browser to another:

  <BIG> Bigger font </BIG>
  <SMALL> Smaller font </SMALL>
  <EM> Emphasis </EM>
  <STRONG> Stronger emphasis </STRONG>
  <DFN> Definitions </DFN>
  <CITE> a citation </CIT>
  <CODE> Code sample </CODE>
  <SAMP> Sample text </SAMP>
  <KBD> Keyboard; text to be typed </KBD>
  <VAR> Used for variable names </VAR>

 

Though some physical and logical styles may look exactly the same with your browser, they could look different on a different one.

Since browsers ignore whitespace characters (tabs, linebreaks, returns, and any other extra spaces) you might want to use the <P> and <BR> tags, described above, and the <PRE> tag:

<PRE>

Oleg	  6'00"	    23 y.o.     M.S. 

  Paul 5'9" 31 y.o. B.A. </PRE>

The same without <PRE> tags:

  Oleg 6'00" 23 y.o. M.S.

  Paul 5'9" 31 y.o. B.A.

 

Part or all of the document's contents can be arranged in columns:

  <MULTICOL COLS="2" GUTTER="20" WIDTH="60%">
  This is just a simple example of how you can arrange some text in 2 columns, with the distance (gutter) of 20 pixels between them, with a total width of 60% of the browser window.
 
</MULTICOL>

This is just a simple example of how you can arrange some text in 2 columns, with the distance (gutter) of 20 pixels between them, with a total width of 60% of the browser window.

 

Here's an example of a blockquote:

  <BLOCKQUOTE>
  I don't know what to put here for an example, so I guess I'll quit trying and will keep it simple. I could have put some wise saying here, but I would just hate to sound trivial.
  </BLOCKQUOTE>

I don't know what to put here for an example, so I guess I'll quit trying and will keep it simple. I could have put some wise saying here, but I would just hate to sound trivial.

 

Superscript and subscript are done as follows:

  Example<SUP> superscript</SUP>

  Example<SUB> subscript</SUB>

Example superscript

Example subscript

 

Now let's make the text blink continually:

  <BLINK>Here's some blinking text </BLINK>

Here's some blinking text

 

Here's some text with a line through it:

  <S>Some text with a line through it </S>

Some text with a line through it