Monday 16 July 2012

how to control line breaks and spaces in html(preformatted text)


<!DOCTYPE html>
<html>
<body>

<pre>
This is
preformatted text.
It preserves      both spaces
and line breaks.
</pre>

<p>The pre tag is good for displaying computer code:</p>

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

</body>
</html>

0 Responses to “how to control line breaks and spaces in html(preformatted text)”

Post a Comment