HOME  |    TRAINING  |   FREE TUTORIALS   |   JOBS
Find out more about our new RSS feed.
FREE Tutorial
FURTHER FORMATTING IN HTML

CATEGORY
SEARCH OUR OTHER TUTORIALS

DESCRIPTION

Here we will explain some more formatting tags that are commonly used in HTML.
Click here to be kept informed of our new Tutorials.


Preformatted Text

The <PRE> element is used to define text as being Preformatted. Text enclosed in the <PRE> ... </PRE> elements is displayed in a non-proportional font. Preformatted means that the text is formatted by the "user" and not by the browser. Unlike standard text in HTML text surrounded by the <PRE> and </PRE> elements will be effected by any TAB and/or CARRIAGE-RETURN characters that are inserted.

Note: You should not use <BR> and <P> elements inside Preformatted text. If you want a new paragraph this should be created by pressing the ENTER key.

Format

<PRE>Text</PRE>

Example of PRE use

<HTML>
<BODY>
 <PRE>This is some preformatted Text
Note that the text is displayed in a typewriter style font.
Also  tabs and 
new-line characters work</PRE>
</BODY>
</HTML>

The example HTML code above looks "untidy" because of the nature of the PRE element. The TAB characters used in other HTML source code to format the HTML listing cannot be used within the PRE elements. If they were the TABS would be shown when the HTML was viewed using a browser.

Netscape displays this text as:

Blockquote

The <BLOCKQUOTE> element allows "quotes" to be correctly displayed on a Web page. The quoted text is indented from the left margin.

Format

<BLOCKQUOTE>Text</BLOCKQUOTE>

Example of use

<HTML>
<BODY>
 Of course it is often said:
 <BLOCKQUOTE>The man who smiles when things go wrong, has though of 
 someone to blame it on!</BLOCKQUOTE>
 Are you smiling?
</BODY>
</HTML>

Netscape displays this text as:

Continued...


NEXT PAGE



5 RELATED COURSES AVAILABLE
HTML 4.0 INTRODUCTION
To create, format and publish a small website using HTML 4.0. You will learn to create web pages incorporating fo....
JAVASCRIPT PROGRAMMING
This training course aims to teach the reader the fundamentals of JavaScript. This course covers topics such as -....
I-NET+ MODULE 8 - DEVELOPING A WEB SITE
On completion of this module, readers will be able to: create HTML pages incorporating different document-, parag....
MICROSOFT INTERNET EXPLORER 6.0 INTERNET INTRODUCTION
This course provides readers with an introduction to the concept of the Internet and the opportunity to gain a br....
A+ MODULE 5 - THE INTERNET
At the end of this course you will be able to: describe the functions of an operating system, describe the featur....
 
0 RELATED JOBS AVAILABLE
CONTACT US
Thursday 24th May 2012  © COPYRIGHT 2012 - website design by Website Design by Visualsoft