Starting a New Page
Starting a New Page
发布时间:2015-03-10 来源:查字典编辑
摘要:

Creating Web Pageswith KompoZerKompoZer lets you create your own web pages and publish themon the web. You don't have to know HTML to use KompoZer; it isas easy to use as a word processor.

Toolbar buttons let you add lists, tables, images, links to otherpages, colors, and font styles. You can see what your document willlook like on the Web as you create it, and you can easily share yourdocument with other users, no matter what type of browser orHTML-capable email program they use.

Starting a New PageCreating a New PageKompoZer is an HTML (Hypertext Markup Language) editor thatallows you to create and edit web pages. KompoZer is aWYSIWYG (What You See Is What You Get) editor, so you candisplay how your page will look to the reader as you're creatingit. It is not necessary for you to know HTML, since most of the basicHTML functions are available as commands from the toolbars andmenus.

KompoZer also lets you edit the HTML source if you want. Toview or edit the HTML source code, open the View menu, and choose HTMLSource, or click the <HTML> Source tab in the Edit Mode toolbarat the bottom of the KompoZer window.

To create a web page, use one of the methods described below. Onceyou've started a page, you can add and edit text just as you would ina word processor.

To create a new page in KompoZer:

Click the New button in KompoZer's toolbar.To start from an HTML file stored on your localdrive:

Open the Window menu and choose KompoZer. You see the KompoZer window. Open the File menu and choose Open File. You see the Open HTML File dialog box. On your local drive, locate the file that you want to edit. Click Open to display the specified file in a KompoZer window.To edit a web page:

Open KompoZer Click on File menu and choose Open Web Location. You will see the Open Web Location dialog box. Type in the URL of the page to edit (for example, http://www.mozilla.org) and click Create button. You will see the page displayed in KompoZer. KompoZer also gives you the option of creating a newdocument using the XHTML format. To create an XHTML document, checkthe option "create an XHTML document" in the Create New Documentor Template dialog box.

Tip: In the KompoZer window you canquickly open the most recent file you've been working on by openingthe File menu, choosing Recent Pages, and then selecting the file youwant from the list.

[ Return to beginning of section]

Tabs - Editing Multiple DocumentsKompoZer allows you to edit multiple documents at the sametime. Rather than to shift from one window to another for editing morethan one document, KompoZer offers the feature ofTabs. More than one document can be opened at thesame time with KompoZer in the same window but in differenttabs.

Tabs can be opened using either Ctrl+T or by choosingCreate in: New Tab in the New file open dialog. Even withmultiple tabs open, each is handled independently. Each document'sstate is indicated, i.e. if it is modified and needs saving by ared-floppy icon on the corresponding tab.

[ Return to beginning of section]

Saving and Browsing YourNew PageYou can save KompoZer documents in HTML or text-onlyformat. Saving a document in HTML format preserves the document'sformatting, such as text styles (for example, bold or italic), tables,links, and images. Saving a document in text-only format removes allthe HTML tags but preserves the document's text.

To save a document as an HTML file:

Open the File menu and choose Save or click the Save button on the Composition toolbar. If you haven't already given your page a title, KompoZer prompts you to do so. KompoZer displays the page title in the browser window's title bar when you view the page in the browser. The document's page title also appears in your list of bookmarks if you bookmark the page.

KompoZer then prompts you to enter a filename and specify the location where you want to save the file. Make sure you preserve the .html extension in the filename. While saving or editing documents employing XHTML, the file should have the extension as .html. Files with an extension .html but having an XHTML DOCTYPE are not considered as xhtml documents.

To change the filename or location of an existing HTML file:

Choose File > Save As and select a different filename or location.When you save a page in KompoZer, all parts of the page(the HTML, images and other files, such as sound files and stylesheets), are saved locally on your hard drive. If you only want tosave the HTML part of the page, you must change the KompoZerpreference for saving pages. See KompoZer Preferences for moreinformation on changing KompoZer's setting for savingpages.

If an image location is absolute (starts with "http://") and youare connected to the Internet, you will still see that image in thedocument in KompoZer and Navigator. However, if the imagelocation is relative to the page location (starts with "file:///"),then you won't see the image in the local version of the document.

To save a document as a text-only file:

Open the File menu and choose Export to Text. Enter the filename and specify the location where you want to save the file.Note: Images do not appear in documents saved inthe text-only format.

Tip: You can choose Revert from the File menu toretrieve the most recently saved copy of the document in which you'reworking. Keep in mind that your current changes will be lost.

To view your page in a browser window in order to test yourlinks:

Open the File menu and choose Browse Page (or click Browse in the Composition toolbar). If you have not yet saved your document, KompoZer prompts you to enter a page title, filename, and location. The KompoZer window remains open behind the new Navigator window.[ 

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新KompoZer user guide学习
热门KompoZer user guide学习
编程开发基础子分类