Page 124 - CA_165_V2.0_Flipbook
P. 124
< PRE> TAG
This (preformatted text) is a container tag. It is used to display the blocked text exactly as it is, with fixed
font, spaces, tab spaces returns, etc. The main purpose of this tag is to display the text in a tabular or
columnar format exactly as it is typed in the text editor.
<PRE> Tag
Type Function Attributes Contains Used Inside
Container tag Displays preformatted text, None Text or inline elements. Typically placed
preserving spaces and line within <BODY>
breaks. tag.
Syntax to use the <PRE> tag is as follows:
<PRE>Table contents</PRE>
The following HTML code demonstrates the use of the <PRE> tag:
<HTML>
<HEAD>
<TITLE> USING PRE TAG</TITLE>
</HEAD>
<BODY BGCOLOR = "LIME">
<B> ORANGE EDUCATION, INDIA </B>
<BR>
<U> A Complete I.T. Reference Book for Student </U>
<P> <PRE>
SALES REPORT
ZONE 2011 2012 2013 2014
East 0.75 0.83 0.91 1.25
West 0.50 0.55 0.62 0.71
North 0.60 0.62 0.74 0.84
South 0.26 0.32 0.34 0.41
</PRE></P>
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Displays text in preformatted
way due to <PRE> tag.
122 Touchpad Computer Applications-X

