Sample 1 - Basic Commands

HTML

HTML (Hyper-Text Markup Language) element indicates that the enclosed text is an HTML document. There are several other markup languages that look like HTML, so the HTML tag distinguishes what language is being used.

Document Head

Below the HTML element is the document HEAD. This contains information about the document, such as the TITLE. The HEAD will not show up as part of the document. The HEAD must always be the first document element after the HTML tag.

Document Title

The TITLE is displayed separately from the document text, and usually in a window title bar, usually a single line at the top of the screen. The TITLE should be short and descriptive.

Document Body

After the HEAD is the BODY element. This is where all text and other material will be displayed.

Headings

There are six levels of headings. H1 to H6, where H1 is the highest and H6 the lowest.

Paragraphs

The P tag marks the beginning of a paragraph. A blank line will be left just above the paragraph.

No ending tag is needed to end the paragraph.

Spaces and Line Breaks

I know this is not very exciting
but
I wanted to show you a line break - BR. Also, note that the language does not recognize blank lines or extra spaces.

Character Highlighting

The most common used character highlighting are EM, emphasised or italized and STRONG, strong or bold. Other ones available for keyboard input, variable, defining a term, short citation, typewriter font, bold, italics, and underlined fonts.

Lists

The two most used lists are OL "ordered list" and UL "underordered list". The Outline above is a sample of these two lists. LI stands for list item.

Horizontal Rules

The final element is the horizontal rule - HR. This simple draws a horizontal dividing line across the page and is useful for dividing sections.
Go to Basic Web Design
Go to Sample 2 - Placing Images and Linking
Go to Sample 3 - Tables
Last updated October 14, 1997 - LE.