Spacing
On HTML documents the spacing will be set up automatically unless you specify otherwise. You are free to write your text with whatever spacing you want, but it will not necessarily be spaced that way when you view it through a browser. For example, there
is an automatic one-space gap between words, which means that if
you write text like this:
' There is automatic
spacing for HTML documents'
then it will nevertheless look like this:
' There is automatic
spacing for HTML documents'
However, there are some ways of controlling the spacing, which are described as
follows.
Line Breaks
You can produce a new line by typing <BR> (line BReak) after the
appropriate text. For example:
Split this sentence<BR> with a line break.
gives
Split this sentence
with a line break.
Paragraphs
You can introduce a paragraph break by typing <P> after the
appropriate text. For example:
Split this sentence <P> with a paragraph break.
gives
Split this sentence
with a paragraph break.
Horizontal Rule
Typing <HR> will produce a horizontal rule (a horizontal line)
across a document, such the one above and below this section.
The thickness of this can be varied by adding a SIZE qualifier.
For example, the thicker line immediately below here was produced by the
statement <HR SIZE=5> ! Cute isn't it ?!
Preformatted Text
Preformatted text is a piece of text whose spacing you wish to conserve.
To do this you must wrap the appropriate text (and spaces) with
<PRE> and </PRE>. For example:
<PRE> This is the spacing
that I want.</PRE><P>
gives
This is the spacing
that I want.
You ought to remember the following points:
- Many of these formatting codes (we typically also call them
tags come in pairs - a start of formatting tag and an end of
formatting tag. An example if the <PRE> and </PRE>
preformatting pair. In such a case, the second item in the pair always
starts with the forward slash character ( / ).
- All of our tags are in uppercase. This is not a requirement, feel
free to use lowercase tags as you wish.
Go To Next Page
Go To Previous Page
Go To Overview