• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Formatting Your Text > Paragraph Style Elements

Paragraph Style Elements

Chapter 4 discussed the paragraph element, which is used for most of the text that you put on your Web pages. However, <p>, </p> isn’t the only paragraph container element. Other elements can also be used in place of the paragraph element to contain blocks of text in different ways.

The <pre> Element

The preformatted text element, represented by the tags <pre> and </pre>, is a little different from the paragraph element in that it recognizes every space and hard return that you type between the tags. Unlike the paragraph element, you don’t need to add <br /> or other tags to render line returns. Between <pre> tags, the lines tend to look exactly like what you type. The following example is illustrated in Figure 5.5:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint