Starting Out with XHTML

Return to HTML Basics - - - Return to HTML Styles

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:

abbreviation
Most states are rememberd by their abbreviations, such as TX for Texas.

acronym
Hypertext Markup Language is an acronym for HTML.

address

El Centro is located at
Main and Lamar

big
We offer BIG savings over our competition!

blink

blockquote
A famous person once said,

There were many paths that lead to success. Choose the one that makes you the happiest.

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

cite
El Centro can be the best!
(Lassiter, 2001)

code
The less than symbol translates to <.

definition
Styles that are named on how they are used are called character styles.

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)

keyboard
Type the following command: find.name

quote
This is a brief quote: To Be or Not to Be.

sample
The URL for that page is http://www.cern.ch/

small
From the back of the room came a tiny voice.

strike
Lawyers often update their filings.

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.

teletype
Type namefile.htm to save as a webpage.

underline
Underline is often confused with links.

variable
Give your file a _name the_file

 

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