Divisions

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

Division
TAGS USED: <div> and </div>
The division tag is very similar to the paragraph tag, only it doesn't create breaks between the paragraphs. It's useful to contrast the two styles.
Code: <div>
<div>
With this faith we will be able to transform the jangling discords of our nation into a beautiful symphony of brotherhood.
</div>
<div>
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.
</div>
<div>
- Martin Luther King Jr.
</div>
Code: <p>
<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 <div> 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.
Final <p> 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.

As you see, the only major difference is that the paragraph tag puts a space between the areas and the division tag doesn't.
Back Home Forward