Free computer Tutorials

HOME Stay at Home and Learn

Web Design Tutorials

 
Computer Tutorials List

 

 

 

 

Extra HTML Text Formatting Tags

 

Here are some other Text Formatting tags you can use in your code. Try them out and see how they work. They are in alphabetical order.

BASEFONT

Used for setting the size of the text on the entire page. The sizes range from 1 to 7, with 7 being the biggest. The default is size 3. Put it on the line after the first BODY tag:

<BODY>

<BASEFONT size = 4>

</BODY>
</HTML>

 

BLOCKQUOTE

The Blockquote tag is used for setting off a block of text from the main body of text.

<BLOCKQUOTE>

To be or not to be, that is the question. Whether 'tis nobler in the mind to suffer the slings …

</BLOCKQUOTE>

The effect will be this:

To be or not to be, that is the question. Whether 'tis nobler in the mind to suffer the slings …

BIG

Makes text bigger, usually by one size above the default, or the BASEFONT, if specified:

<BIG>Some Text</BIG>

DEFINITION LISTS

The <DL> </DL> tags are used to set up a definition list. The definition list is useful for things like glossaries, and even CV's. Two other tags go with the <DL> tag: <DT> and <DD>. The DT tag is the Definition Text, and the DD tag is the Definition Description. You use them like this:

<H1>A CV</H1>

<DL>

<DT><B>2345 - 2346</B>

<DD>Accidentally Blew up the Starship Enterprise

<DT><B>2346 - 2347</B>

<DD>In Prison for accidentally Blowing up the Starship Enterprise

</DL>

The effect in a browser would be this (without the grey background, obviously):

A CV

2345 - 2346
Accidentally Blew up the Starship Enterprise
2346 - 2347
In Prison for accidentally blowing up the Starship Enterprise

EMPHASIS

The <EM> </EM> are used for emphasis. The result is text with italics:

<EM>Some Text</EM>

PRE

The <PRE> </PRE> tags are used to retain formatting. For example, when you've copied lots of text from a word processor, and don't want to insert lots of paragraph tags then you can use PRE (short for preserve formatting)).

<PRE>

Some text Some text Some text Some text Some text Some textSome text Some text Some text Some text Some text Some text

</PRE>

SMALL

Makes text smaller, usually by one size below the default, or the BASEFONT, if specified:

<SMALL>Some Text</SMALL>

STRIKE

Used for striking through text:

<STRIKE>Some Text</STRIKE>

Some Text

STRONG

An alternative to the Bold tag:

<STRONG>Some Text</STRONG>

UNDERLINE

If you want underline, used the <U> </U> tgas:

<U>Some Text</U>

Some Text

 

And now that you have a good idea of how to format text on your page, you can move on to the next section - Hyperlinks.

<-- Back One Page Move on to the Next Section -->

<--Back to the Web Design Contents Page

View all our Home Study Computer Courses