Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q2002 Why don't spaces, tabs and line breaks appear where I put them?

You are here: irt.org | FAQ | HTML | Q2002 [ previous next ]

Web browsers use html tags to format text. They place spaces, carriage returns and tabs wherever they think is most appropriate. You can force a line break with the tag <br>. The <p> tag formats the preceding text as a paragraph. This usually also adds a blank line after the paragraph. Notice that there is no </p> or </br> tag. You can also force a block of text to appear exactly as you typed it by surrounding the text with <pre> and </pre>, which stands for preformatted.

Feedback on 'Q2002 Why don't spaces, tabs and line breaks appear where I put them?'

©2018 Martin Webb