The text written with pre tag preserves - both spaces and line breaks.
Pretext for displaying computer code
for (i=0; i<=10 ; i++) { x = x +2; y = y-1; }