Auto AdSense

Tuesday, 26 May 2015

Preformatted text (how to control line breaks and spaces) - HTML Programs

<html>
<body>

<pre>
This is
preformatted text.
It preserves      both spaces
and line breaks.
</pre>
The pre tag is good for displaying computer code:<br />


<pre>
for i = 1 to 10
     print i
next i
</pre>
</body>
</html>

Output


This is
preformatted text.
It preserves      both spaces
and line breaks.
The pre tag is good for displaying computer code:
for i = 1 to 10
     print i
next i

No comments:

Post a Comment