| DEMO Overview |
| ||||||||
![]() |
| At A Glance: |
Page Layout Text Separation
I have already mentioned in Chapter 2 and throughout this chapter
about separating your text in the browser. Again, the browser
will ignore any white space and carriage returns unless it is
inside of a <PRE> block. Therefore, you must provide the
browser with tags to let it know where you want paragraph and
line breaks. To review, the text can be broken up by a line break,
paragraph break, or hard return:
<BR>
<P>
<HR>
Use these tags to give your page a professional appeal. Without
them you will quickly notice that it is nearly impossible to make
sense of what is on the screen. Centering
Up until now, all of the text that we have discussed has been
aligned to the left unless you used the alignment attribute of
the headings. But you can't write your entire code in a heading
block. Yet, you may want to center text, graphics, or tables
on your page. This is accomplished with the <CENTER>
tag:
<CENTER>
The <CENTER> tag is probably one of the most widely used
tags since it can operate on anything. You can use it inside
table cells and to center graphics and forms. In a browser, the preceeding code would look like the following:
Even when there are line breaks And paragraph breaks
|