Maddog's HTML for Real People Chapter 2, Lesson 5


[INDEX] Ch 2, L 5 - Paragraphs and End-Of-Line Breaks

If you already know how to create a paragraph and how to create an end-of-line break, you can skip this lesson.

HTML would be an insane document language if it didn't have the means to cause an end-of-line (EOL) break. And if it was just a "sqeenchy bit" more fancy, it would provide a "start-paragraph" method, also. Well, HTML uses a standalone tag (remember HTML tags?) to accomplish both of those very handy actions. Here they are:

<BR> means"BReak to a new line" (hard EOL)
<P> means "start a new Paragraph, skipping one line"

Let's see if it really works:

HTML Source Code Follows:


The quick <BR>
brown fox <BR>
jumps over <BR>
the lazy dog. <BR>
<BR>
<BR>
<BR>
 Ask me if I care.   Ask me if I care.  Ask me if I care.  Ask me if I care.   
 Ask me if I care.   Ask me if I care.  Ask me if I care.  Ask me if I care
 Ask me if I care.   Ask me if I care.  Ask me if I care.  Ask me if I care.
<P>
I need a real job.  I need a real job.  I need a real job.  I need a real job. 
I need a real job.  I need a real job.  I need a real job.  I need a real job. 
I need a real job.  I need a real job.  I need a real job.  I need a real job.
<P>
<P>
<P>
I'm really losing it now.  I'm really losing it now.  I'm really losing it now. 
I'm really losing it now.  I'm really losing it now.  I'm really losing it now. 
I'm really losing it now.  I'm really losing it now.  I'm really losing it now.  
(End of HTML Source Code)

Demonstration Follows:
The quick
brown fox
jumps over
the lazy dog.



Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care. Ask me if I care.

I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job. I need a real job.

I'm really losing it now. I'm really losing it now. I'm really losing it now. I'm really losing it now. I'm really losing it now. I'm really losing it now. I'm really losing it now. I'm really losing it now. I'm really losing it now.

(Demonstartion Ends)

There are several things to notice here about how the browser works to pretty-up the HTML text:

A quick note about these HTML tags: <BR> and <P> are good examples of HTML standalone tags. A standalone tag accomplishes its special feature with just that tag, in contrast to tag pairs, which begin their action with an opening tag, and keep that feature turned on until there's a closing tag. Standalone tags require no closing action.
-PREVIOUS- -CHAPTER- -INDEX- -NEXT-

Overseer: Monty Northrup ... maddog@io.com ... leave e-mail ...
...to maddog 'n' miracles homepage...