|
A couple of other peculiarities of HTML involve the handling of line breaks and spaces. HTML does not recognize redundant spaces and collapses all to one space. This will be discussed in greater detail when we discuss symbols (turns out you need to use the symbol for the space character to retain extra spaces). Similarly,
just because your HTML editor of choice wraps text to the next line when
you reach the right side of your viewing window, does not mean that the
web page when rendered will insert a line-feed character. When you
start a new |
|
|
|
|
When you want short lines A new paragraph. |
LinesA
simple way to break your pages into sections for readability is to use
lines or horizontal rules as they are called in HTML. This
is another tag which does not abide by the concept of an opening and
closing tag. The horizontal rule is written simply as |
|
|
This
is your standard horizontal line: This is a thicker black
line: We specified that it be 6 pixels high and black in color. It also could have been
red in color: Maybe we only
wanted it to use 50% of the available area: Maybe 50% was fine, but we wanted it right justified:
Get the idea? |
| * Note that certain tags which do not conform to the opening tag/closing tag syntax can currently be written one of two ways. For instance, <br> is the same as <br />. The latter being the preferred syntax in order to conform to W3C specifications. <return> |
|
Email: |
raykelly@rakelly.com |