decorative banner

Using HTML paragraph formats


    You can add structure to your text by using a choice of HTML paragraph formats:

    • Use Heading formats to replace the <p> tag with any of the six HTML heading tags: <h1>, <h2>, <h3>, <h4>, <h5>, or <h6>. Most Web browsers use a diminishing character point size to display the sequence of headings, where <h1> is the largest and <h6> is the smallest size.
    • Use the Address paragraph format to apply the <address> tag to a paragraph that contains the author's e-mail address.
    • Use the Preformatted paragraph format when you want to retain the integrity of character and line spacing in a paragraph. This is useful for evenly lining up numbers in a column or presenting source code with its proper spacing. Browsers display all text within the <pre> and </pre> tags in a monospaced font.
    • Use the Paragraph format to apply the default paragraph format in the browser's preferences.
    • Use the None paragraph format when you want to remove the <p> and </p> tags from a range of text.

    All paragraph formats work well with cascading style sheets. (See Creating HTML element styles.)

    Tip iconBesides using the History palette or choosing Edit > Undo, you can use the HTML Styles palette to remove a paragraph format (such as the Address element) from your text. By choosing Clear Paragraph Styles from the palette menu, all styles applied to a selected paragraph are removed. (See Applying or removing HTML styles.)

To format a heading, address, or preformatted paragraph:

  1. Click anywhere in the paragraph that you want to format.
  2. Choose a format from the Type > Paragraph Format menu or the Paragraph Format pop-up menu on the toolbar.
  3. Tip iconWhen you're setting up your pages to use with cascading style sheets, drag these formatted paragraphs into the HTML Styles palette so you can quickly apply headings or other paragraph structures to other text. (See Saving HTML styles.)

To reset the current paragraph to the default format selected in the browser's preferences:

    Choose Type > Paragraph Format > Paragraph.

To remove the <p> and </p> tags from the current paragraph:

    Choose Type > Paragraph Format > None.