Paragraphs

Section 1 - Introduction
Section 2 - Basics
      Your first page
      Formatting
        Paragraphs
         Divisions
         Headings
         Alignment
         Breaks
         Horizontal Lines
         You Try It!
      Text tricks
      Pictures
      Links
      Backgrounds
Section 3 - Next Level
Section 4 - Advanced
Section 5 - Publishing
Section 6 - Extras
Appendices
Paragraphs
TAGS USED: <p> and </p>
You can format a document by dividing it into paragraphs. Suppose you had a bunch of text that you wanted separated into two paragraphs. In a word processing document, you can put spaces between the paragraphs, but that isn't recognized in HTML. One of the easiest ways to solve this is with paragraph tags.

Paragraph tags are placed before and after the paragraph. They separate various paragraphs by putting a space between them. Let's look at how this is done. Below are three examples of paragraphs. The first in unformatted, the second shows the code, and the last shows the final product.
Unformatted
With this faith we will be able to transform the jangling discords of our nation into a beautiful symphony of brotherhood. With this faith we will be able to work together, to pray together, to struggle together, to go to jail together, to climb up for freedom together, knowing that we will be free one day. - Martin Luther King Jr.
The Code
<p>
With this faith we will be able to transform the jangling discords of our nation into a beautiful symphony of brotherhood.
</p>
<p>
With this faith we will be able to work together, to pray together, to struggle together, to go to jail together, to climb up for freedom together, knowing that we will be free one day.
</p>
<p>
- Martin Luther King Jr.
</p>
Final Result

With this faith we will be able to transform the jangling discords of our nation into a beautiful symphony of brotherhood.

With this faith we will be able to work together, to pray together, to struggle together, to go to jail together, to climb up for freedom together, knowing that we will be free one day.

- Martin Luther King Jr.

Back Home Forward