
Chapter 5
150
Creating, opening, and saving
HTML documents
Dreamweaver offers various ways to create a document. You can create new, blank
HTML documents; you can open an existing HTML document, even if it wasn’t
created in Dreamweaver; or you can create a new document based on a template.
You can also open non-HTML text files, such as JavaScript files, plain text e-mail
files, or text files saved by word processors or text editors. You can’t use all of the
Dreamweaver document-editing tools on a plain text document, but you can use
basic text-editing features. Reasons to open text documents might include editing
and debugging JavaScript code, looking at the contents of a Dreamweaver
configuration file, or opening a piece of e-mail that contains a snippet of HTML,
to copy that code and paste it into another document.
To create a blank HTML document in a new Document window, do one of
the following:
•
In Windows, choose File > New from an existing Document window, or
choose File > New Window from the Site window.
•
On the Macintosh, choose File > New.
If you open the Code view (in the Document window) or the Code inspector, you
can see that the new document isn’t completely blank—it contains
html
,
head
,
and
body
tags to get you started. As you type in the Document window’s Design
view or insert objects such as tables and images, you can leave a code editor open
and watch as the HTML source code is created. For more information on the
code editors, see “Using the Code view (or Code inspector)” on page 330.
To open an existing HTML file, do one of the following:
•
Choose File > Open.
•
If the file was created using Microsoft Word, choose File > Import >
Import Word HTML.
If you choose Import Word HTML, Dreamweaver opens the file and then lets
you specify options for removing extraneous HTML code generated by Word.
(Microsoft Word 97 and later versions provide a Save as HTML feature, which
adds unnecessary HTML code as it converts a document to HTML.) For more
information, see “Cleaning up Microsoft Word HTML” on page 348.
Note:
You can’t directly import a Microsoft Word (.doc) file into Dreamweaver. If you
want to import the contents of a Word file, launch Word and save the file as HTML
before importing the resulting HTML file into Dreamweaver.
Содержание 38028779 - Macromedia Dreamweaver - Mac
Страница 1: ...macromedia Using Dreamweaver...
Страница 148: ...Chapter 4 148...
Страница 296: ...Chapter 12 296...
Страница 472: ...Chapter 18 472...
Страница 512: ...Chapter 21 512...
Страница 562: ...Appendix 562...