Starting Out with XHTML: See Them in Action!

Return to HTML Basics

Basic Codes:

DOCTYPE... html... head... title... body...

What else should you add?

meta... comments...

What about the basic tags?

line breaks
       break the text but do not put blank lines above or below the text.

paragraphs

always have a blank line above and below them.

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6

 

Horizontal Rules:

100%


Formatting Tags:

blink

bold (NOTE: this code is no longer used! It has been replaced by strong)

emphasis
We'd all get along much better if you'd stop being so silly.

italics (NOTE: this code is no longer used! It has been replaced by emphasis)

strong
You must open the can before drinking.

subscript and superscript
Subscript appears below the text, and superscript above the text.

Having fun with superscript and subscript on my webpage!

El Centro's enrollment figures rose 1/4 over last semester.

pre

Well, if I called the wrong number,
    why did you answer the phone?

                                    Humour is emotional chaos 
                                    remembered in tranquillity.

               I can resist everything except temptation.

    What is a cynic?
    a man who knows the price of everything and the value of nothing.

         A man cannot be too careful in the choice of his enemies.

Special Characters

< - less than

> - greater than

& - ampersand

&copy - copyright

blank      spaces

Back to the Top