HTML text Formatting [] Preformatted text (how to control line breaks and spaces)

Preformatted text (how to control line breaks and spaces)

<!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>

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

ليست هناك تعليقات:

إرسال تعليق