In this section: Starting a New Page Formatting Your Web Pages Using Style Sheets to Style Your Web Pages Adding Tables to Your Web Page Adding Pictures (Images) to Your Web Page Working with Table of Contents on Your Web Page Working With Templates Setting Page Properties Creating Links in KompoZer Customizing KompoZer

Formatting Your Web Pages

Formatting Paragraphs, Headings, and Lists

To apply a format to a paragraph, begin from the KompoZer window:

  1. Click to place the insertion point where you want the format to begin, or select the text you want to format.
  2. Choose a paragraph format using the drop-down list in the Format toolbar:

To format text as a heading:

  1. Click to place the insertion point anywhere within the text that you want to format.
  2. Using the drop-down list in the Format toolbar, choose the level of heading you want, from 1 (largest) to 6 (smallest). Choose "Heading 1" for your main heading, "Heading 2" for the next level, and so forth.

To apply a list item format:

  1. Click to place the insertion point within the line of text that you want to format.
  2. Open the Format menu and choose List.
  3. Choose the list style:

Tip: You can quickly apply a list style to a block of text by selecting the text and clicking the Numbered List or Bulleted List buttons on the Format toolbar.

To change the style of bullets or numbers:

  1. Click to place the insertion point within the text of the list item you want to change, or select one or more items in the list if you want to apply a new style to the entire list.
  2. Open the Format menu and choose List Properties.
  3. Select a bullet or number style from the drop-down list. For numbered lists, you can specify a starting number. For bulleted lists, you can change the bullet style.

Tip: You can also double-click on a bullet or number in a list to display the List Properties dialog box.

To align a paragraph or text in your page, for example, centering or aligning to the left or right:

  1. Click to place the insertion point within the paragraph or line of text you want to align.
  2. Open the Format menu and choose Align; then choose an alignment option.

Note: You can also use the Format toolbar to align text.

[ Return to beginning of section ]

Working with Lists

To end a list and continue typing body text:

To change one or more list items to body text:

  1. Click to place the insertion point within the list item, or select the list items.
  2. In a numbered list, click the numbered list button (or in a bulleted list, click the bulleted list button) in the Format toolbar.

To position indented text below a list item:

  1. Click to place the insertion point within the list item.
  2. Press Shift-Enter to create the hanging indent.
  3. Type the text you want to indent.
  4. Press Shift-Enter to create another indented paragraph, or press Return to create the next list item.

Tip: You can increase or decrease the indentation of list items by clicking anywhere in a list item and then clicking the Indent or Outdent button on the Format toolbar. Alternatively, click anywhere in a list item and press Tab to indent one level. Press Shift+Tab to outdent one level.

To merge two adjacent lists:

  1. Select the two lists that you want to merge. Be sure to select all of the elements in both lists. Note that any text in between the two lists will also become part of the merged list.
  2. Click the bulleted or numbered list button in the Format toolbar to merge the lists.

[ Return to beginning of section ]

Changing Text Color, Style, and Font

To change the style, color, or font of selected text:

  1. Select the text you want to format.
  2. Open the Format menu and choose one of the following:

To change the background color of the page:

  1. Click anywhere in the page.
  2. Click the background color block in the Format toolbar.
  3. Choose a background color from the Block Background Color dialog box.
  4. Click OK.

Tip: To quickly change the color of text to the color last used, select the text, then press Shift and click on the text color block in the Format toolbar. This is useful when you want to use one color for separate lines of text.

You can also use an image as a background. See Setting Page Colors and Backgrounds.

[ Return to beginning of section ]

Removing or Discontinuing Text Styles

To remove all text styles (bold, italic, and so on) from selected text:

  1. Select the text.
  2. Open the Format menu and choose Remove All Text Styles.
  3. Continue typing.

To continue typing text with all text styles removed:

  1. Place the insertion point where you want to discontinue the text styles.
  2. Open the Format menu and choose Discontinue Text Styles.
  3. Continue typing.

[ Return to beginning of section ]

Finding and Replacing Text

To find text in the page you're currently working on:

  1. Click to place the insertion point where you want to begin your search.
  2. Open the Edit menu and choose Find and Replace. You see the Find and Replace dialog box.
  3. Type the text you want to locate in the "Find what" field. To narrow the search, check one or more of the following options:
  4. Click Find Next to begin searching. When KompoZer locates the first occurrence of the text, click Find Next to search for the next occurrence.
  5. Click Close when you are done.

To find and replace text in the page you're currently working on:

  1. Click to place the insertion point where you want to begin your search.
  2. Open the Edit menu and choose Find and Replace. You see the Find and Replace dialog box.
  3. Type the text you want to find and then type the replacement text.
  4. To narrow the search, check one or more of the following options:
  5. Click Find Next to search for the next occurrence. KompoZer selects the next occurrence of the text.
  6. Click Replace to replace the selected text with the replacement text. Click Replace and Find to replace the selected text and find the next occurrence. Click Replace All to replace every occurrence in the document with the replacement text.
  7. Click Close when you are done.

[ Return to beginning of section ]

Inserting Horizontal Lines

Horizontal lines are typically used to separate different sections of a document visually. To insert a horizontal line (also called a rule) in your page, begin from the KompoZer window:

  1. Click to place the insertion point where you want the line to appear.
  2. Open the Insert menu and choose Horizontal Line.

Setting Horizontal Line Properties

You can customize a line's height, length, width, alignment, and shading.

  1. Double-click the line to display the Horizontal Line Properties dialog box.
  2. Edit any of these properties:
  3. Click Use as Default to use these settings as the default the next time you insert a horizontal line.
  4. To edit the properties of a horizontal line manually, click Advanced Edit. See the section, Advanced Property Editor, for details.

Tip: You can select "Show All Tags" from the View menu to show all the HTML elements in yellow boxes. Click any yellow box to select everything within that HTML tag or element. Double-click any yellow box to display the Advanced Property Editor dialog box for that HTML tag or element.

[ Return to beginning of section ]

Inserting Special Characters

To insert special characters such as accent marks, copyrights, or currency symbols:

  1. Click to place the insertion point where you want the special character to appear.
  2. Open the Insert menu and choose Characters and Symbols. You see the Insert Character dialog box.
  3. Select a category of characters.
  4. From the Character drop-down list, select the character you want to insert.
  5. Click Insert.

    You can continue typing in your document (or in a mail compose window) while you keep this dialog box open, in case you want to use it again.

  6. Click Close when you are done inserting special characters.

[ Return to beginning of section ]

Inserting HTML Elements and Attributes

If you understand how to work with HTML source code, you can insert additional tags, style attributes, and JavaScript into your page. If you are not sure how to work with HTML source code, it's best not to change it. To work with HTML code, use one of these methods:

Using the Advanced Property Editor

To add HTML attributes and JavaScript to objects such as tables, images, and horizontal lines, you can use the Advanced Property Editor.

Note: Unless you clearly understand how to add, delete, or modify HTML attributes and their associated values, it's best not to do so.

If you are not currently viewing the Advanced Property Editor dialog box, follow these steps:

  1. From the View menu (or the Edit Mode toolbar), choose Show All Tags.
  2. Double-click the object that you want to modify to open its Properties dialog box.
  3. Click Advanced Edit to open the object's Advanced Property Editor. The Advanced Property Editor has three tabs, each of which lists the current properties for the selected object:
  4. To edit a property or attribute in any of the three lists, select the attribute you want to edit. You can then edit the attribute's name or value using the editable Attribute and Value fields at the bottom of the dialog box. To add a new attribute, type it in the Attribute field at the bottom of the dialog box. The new attribute is automatically added when you click in the Value field. To remove an attribute, select it in the list, and click Remove Attribute.

    Note: Required attributes are highlighted in the Attribute list.

  5. Click OK to apply your changes to the Advanced Property Editor dialog box.
  6. Click OK again to exit the Properties dialog box.

KompoZer automatically places quotation marks around any attribute text.

[ Return to beginning of section ]

Validating the HTML

Before you put your document on a web server(i.e. publish it), it is good practice to first check the document's HTML formatting so as to make sure that it conforms to web standards. Documents containing validated HTML are less likely to cause problems when viewed by different browsers. Just visually checking your web pages in your favourite web browser doesn't ensure that your document will appear correctly when viewed in other web browsers.

KompoZer provides a convenient way for you to check that your document conforms to W3C (World Wide Web Consortium) HTML standards. KompoZer uses the W3C HTML Validation Service, which checks your document's HTML syntax for compliance with HTML 4.01 standards. This service also provides information on how to correct errors.

Note: You must be connected to the Internet to use this feature.

To validate your document's HTML syntax:

  1. Open the Tools menu, and choose Validate HTML. If you have unsaved changes, KompoZer asks you to save them before proceeding.
  2. KompoZer will open another window with results for your page displayed in it after the W3C Validation Service program parses your html file.

[ Return to beginning of section ]

Choosing the Right Editing Mode

Typically, you won't need to change the editing mode from the default (Normal). However, if you want to work with the document's HTML source code, you may want to change editing modes.

KompoZer allows you to quickly switch between four editing modes or views. Each editing mode allows you to continue working on your document, but displays varying levels of HTML tags (and tag icons).

Before you choose an editing mode:

The Edit Mode toolbar has four tabs:

Note: JavaScript functions, frames, links, Java, embedded objects and animated GIF files are not active in any of the editing modes. To display these items in their active state, click the Browse button on the Composition toolbar to load the page into a browser window.

[ Return to beginning of section ]

Using Status Bar for Formatting Your Web Page

KompoZer has an innovative feature of editing/applying inline styles and applying class or id tags to selected text via its status bar. Styling using the status bar is possible in all modes except <HTML> Source viewing mode.

[ Return to beginning of section ]

[Home] [Next] [Previous]

TeliuTe, 07 July 2009

Copyright © 2004-2009 Contributors to the Nvu, KompoZer Help Documentation Project.