HyperTextMarkupLanguage

HTML basics- Part 1
Body, H1-H6, Paragraph

| Home | HTML basics- Part 1 - Agenda | Next |

Basic tags

Document Body

Appearance: <BODY>...</BODY>
Attributes: BACKGROUND=URL, BGCOLOR=#RRGGBB, TEXT=#RRGGBB, LINK=#RRGGBB, VLINK=#RRGGBB, ALINK=#RRGGBB

Between the opening and closing BODY tags, you find all of the text, graphics, etc. that get displayed in the Browser window. The BODY tag comes after the HEAD tag in HTML programming.

Common Attributes for Body Element
bgcolor Specifies the background color for the document body. See here for the syntax of color values.
text Specifies the color used to stroke the document's text. This is generally used when you have changed the background color with the BGCOLOR or BACKGROUND attributes.
link Specifies the color used to stroke the text for unvisited hypertext links.
vlink Specifies the color used to stroke the text for visited hypertext links.
alink Specifies the highlight color used to stroke the text for hypertext links at the moment the user clicks on the link.
background Specifies a URL for an image that will be used to tile the document background.


H1 - H6 - Level 1 through Level 6 heading

Appearance: <H1>...</H1>
<H2>...</H2>
<H3>...</H3>
<H4>...</H4>
<H5>...</H5>
<H6>...</H6>
Attributes: ALIGN=left|right|center

The Heading tags are most commonly used to set apart document or section titles. There are six levels of Headings, numbered 1 through 6, with 1 being the most prominent. Only one Heading per row is allowed.


Paragraph

Appearance: <P>...</P>
Attributes: ALIGN=left|center|right

The Paragraph tags simply begin and end a paragraph in HTML. Word wrapping is controlled by the Browser. Multiple spaces are collapsed into a single space.

EXAMPLE:

<HTML>
<HEAD>
<TITLE>Internet CGI Class for the AS/400</TITLE>
</HEAD>
<BODY>
<H1>This Class is Held Over Three Days</H1>
<H2>Day 1</H2>
<P>Some Basic HTML</P>
<H2>Day 2</H2>
<P>Some Advanced HTML</P>
<P>CGI fundamentals</P>
<H2>Day 3</H2>
<P>ILE RPG</P>
<P>Configuring HTTP</P>
<P>Advanced CGIs</P>

This Class is Held Over Three Days

Day 1

Some basic HTML

Day 2

Some advanced HTML

CGI fundamentals

Day 3

ILE RPG

Configuring HTTP

Advanced CGIs




| Home | HTML basics- Part 1 - Agenda | Next |

T07D021