KompoZer User Guide - Section 3
When KompoZer starts the window carries a menu bar across the top (File, Edit, View etc). Below this are three 'Toolbars'. To ensure that everything is visible, on the Menu bar select View > Show/Hide and see that each of the following is checked: Composition Toolbar, Format Toolbar 1, Format Toolbar 2, Edit Mode Toolbar, Status bar, Rulers, Site Manager.
The three toolbars across the top of the window carry buttons (represented by icons). Hover on any to find its function. If any are greyed out they are not functional in the current mode as they are context sensitive.
Note Not all buttons are installed initially. The full list is given in section 9.3 Customising toolbars
Across the centre of the window are two panes: the 'Site Manager' on the left and a blank web page on the right. The Site Manager is a powerful tool which is covered in section 8. Since it is not needed yet it may be closed by clicking on its close button or pressing F9.
At the top of the Page area there is a Page tab which carries the name of the page (‘Untitled’). (KompoZer Help refers to this as the ‘Tab Browser’ toolbar.) If you had several pages open, as shown in the figure, this tab would allow you to select one them rapidly.
At the bottom of the page area is the ‘Edit Mode Toolbar’ which carries four tabs which select one of four ‘Viewing modes’ for a page (‘Normal’, 'HTML Tags', 'Source', 'Preview'.)
For details of viewing modes see section 3.15.
At the bottom of the window is the 'Status Bar'. This is a very powerful tool. Once a page is populated, by clicking any item in the page area its structure appears on the status bar. Any class or id applied to an element is shown and any bearing an inline style is indicated in italic type. Hovering reveals the style declaration. Additionally clicking an element marker highlights the element in both normal view and, on changing view, in source view thus simplifying navigation in source view.
Note The figure shows the buttons as they appear when KompoZer is first installed. They may be customised to different arrangements (see section 9.3). If this has been done some of the following may be difficult to follow. To restore defaults click View > Show/Hide > Customize Toolbar > Main Toolbar > Restore Default Set and repeat similarly for the Format Toolbar.
Using KompoZer right-click any toolbar to customise it.
A new page can be created either from a blank page or by opening any pre-existing page.
Note There are often several ways of getting KompoZer to do something. This guide will use the button on the Composition toolbar if that is available. For menu equivalents see section 9.3 Menu alternatives
Web pages use the HyperText Markup Language (HTML). There are number of variants of the basic language some details of which are outlined in Appendix 3. KompoZer is capable of creating and editing four variants but for simplicity of explanation I recommend that users create the Strict HTML variant. I also recommend that you go the menu item Tools > Options > General and check the box 'Use CSS Styles instead of HTML Elements ...' this will give you the maximum functionality. You can edit documents which have been originated in other variants and again 'Use CSS Styles ...' gives maximum functionality.
Note If you find a button or menu item disabled it is likely to be a because 'Use CSS Styles ...' is not set but could be because of the context of the action.
There are several ways to start new pages or open existing ones.
To start a new blank page.
On the menu bar click File > New.
A window headed ‘Create a new document or template’ appears. Check the boxes ‘A blank document’ and ‘Strict DTD’ and clear ‘create a XHTML document’. (Without Strict DTD checked the document would have ‘Transitional’ DTD.)
Note If you wish to make these your defaults which are offered every time you create a new page click Tools > Options > Advanced and check the boxes Markup Language: 'HTML 4' and DTD: 'Strict'.
The use of templates is covered in section 7.
To open an existing page.
Either:
The doctype of an existing page will remain the same as before it was opened. It cannot be changed in KompoZer.
Each page opened starts in a new tab which can be clicked to select a document to work on.
Tip: The plus sign (+) means that you must press two keys surrounding the plus sign at the same time.
KompoZer supports all the standard Windows editing commands and shortcut keys. e.g. Copy Ctrl+C, Paste Ctrl+V etc. There are other KompoZer specifics. These are great time savers.
In ‘HTML Tags’ view KompoZer supports drag and drop editing for block items. (Select an item by pressing the Control key while clicking on the Tag.)
An extreme time saver is KompoZer’s double click response. In several cases, such as links, images and tables, a very useful editing window is opened.
KompoZer supports many levels of Undo and Redo, however changes made in ‘Source’ view cannot be undone after you have changed the view.
HTML stands for HyperText Markup Language. It is the publishing language of the World Wide Web on which KompoZer is based. Ideally it should be possible to use KompoZer without any knowledge of this language and certainly without a knowledge of the details. As a precaution however a limited understanding is desirable. This tutorial covers a minimum of detail while introducing some useful features of KompoZer.
Start a new blank page as described above.
On the status bar click on the '<> Source' tab. You will see a number of terms enclosed within angle <> brackets. These are HTML ‘Tags’. Everything starting from the <body> and finishing with
will appear on your web page.
Note In most cases tags occur in pairs – opening tags and closing tags – Closing tags always start with a forward slash.
All the page consists of now is a
tag which is a line break and which is, of course, invisible.
Later as a page builds up many more tags will be added. For the most part the pairs of tags enclose ‘contents’ from which the page is built up – items like Paragraphs, Headings, Tables, Images. The tags plus the contents are called ‘elements’. The tag names are usually either the same as element names or abbreviations of them. Some examples are ‘table’, ‘img’ for image, ‘p’ for paragraph, ‘br’ for line break (which is unusual in having no closing tag).
Nothing between the <head> and tags will appear on the screen but may have quite useful functions nonetheless. For instance, between the <title> and tags there isn’t anything. Go for it, between them type “My first page
” or something like that. Click the tab for ‘Normal’ view, now the tab at the top carries your page title and you’ve edited raw HTML. Well done!
If you were too timid to do this all is not lost. There is no need to use source view at all. Go to Format > Page Title and Properties. Here you can enter various parameters including the title and the language you are writing in. These will be entered in the HEAD area for you. In some circumstances they can be important; the Title and Description, for instance, can be used by search engines to index the page.
Back to '<> Source'. Notice the first tag is <html> and the last