DLiteracy.org Learning Digitally
                                                   home example news

Heading Commands

Heading commands create bold text headings. Be awrare, however, they like to be alone. It's like the heading commands carry a <P> command with them. You cannot get other text to sit right up against a heading.
 

<H1>This is Heading 1</H1>

<H2>This is Heading 2</H2>

<H3>This is Heading 3</H3>

<H4>This is Heading 4</H4>

<H5>This is Heading 5</H5>
<H6>This is Heading 6</H6>
Font Size Commands:

Font size commands give you more control over your text size than heading commands. Heading commands are great for right at the top of the page, but font size commands work well for controlling text within the document. There are twelve (12) font size commands available to you:

+6 through +1 and -1 through -6
+6 is the largest. It's huge. Minus 6 is the smallest.
<FONT SIZE="+3">This is +3</FONT>
<FONT SIZE="-1">This is -1</FONT>

There are two other attributes you can use inside the FONT command, COLOR and FACE.

 

Text Defaults to the Left

Centering Text

<CENTER>
All text in here will be centered
</CENTER>
 
 
Text To The Right
Here's the format for right justified using P with an attribute added to it:
<P ALIGN="right">Text in here is pushed to the right</P>
If you add an attribute to a single flag like the <P> flag, or the <BR> flag, you'll need to use an end flag. The moment you add an attribute=, you need to use the end flag.

 
Additional Text Formatting:
 
<blockquote></blockquote> Indents text from both sides
 
<dl></dl> Creates a definition list
 
<dt> Precedes each definition term
 
<dd> Precedes each definition
 
<ol></ol> Creates a numbered list
 
<li> Precedes each list item, and adds a number
 
<ul></ul> Creates a bulleted list
 
<li> Precedes each list item, and adds the bullet
 

Affect Code Code Being Used What it does
BOLD B Bold Bold
Italic I Italic Italic
Typewriter TT Typewriter Typewriter
Bold and Italic gives you Bold and Italic

Three commands that do not need to be turned off.

Tag What It Does

This command gives you a line across the page. (HR stands for Horizontal Reference) The line right above the words "Single Flags" was made using an
flag.

This BReaks the text and starts it again on the next line. Remember you saved your document as TEXT so where you hit ENTER to jump to the next line was not saved. So in an HTML document, you need to denote where you want every carriage return with a
.
<P> This stands for Paragraph. It does the exact same thing as the
above except this flag skips a line. BR just jumps to the next line. "P" skips a line before starting the text again.


Back
Copyright © 2004