So far, you've learned just about everything you need to know
to create HTML documents from scratch. But what about converting
existing documents to HTML? The prospect of having to retype documents
and insert the appropriate HTML codes by hand isn't very promising,
even for the most experienced HTML wizards.
Fortunately, there are plenty of tools available to convert existing
documents to HTML quickly. If you're lucky enough to have your
documents in Microsoft Word format, conversion is a snap. However,
even if your documents are in plain text, the dirty work of inserting
paragraph markers, line breaks, and heading tags can be done automatically
by the right tools.
If you have a lot of plain text files that you need to quickly
convert to HTML, one of the best tools available is HotDog Professional.
One of the many features of this popular HTML editor is its ability
to quickly convert existing text documents to HTML after you select
just a few simple options. HotDog Professional automates most
of the task, and produces a valid HTML document in mere seconds.
HotDog Professional is available as shareware, and you can evaluate
it for free for 30 days. It is well worth a look. You can download
a copy from Sausage Software's Web site at http://www.sausage.com.
The conversion process works best with text files that are
simple and follow a regular pattern, such as a heading followed
by a paragraph. If your text file has several different sections,
you may want to break it up into smaller text files first.
HotDog Professional is a full-featured HTML editor, and you
may decide to start using it instead of Notepad for all of your
HTML document writing. The best part about HotDog Professional
is that it's shareware, which means you can try it before you
decide whether to purchase it.
In the Text to HTML Converter dialog box, select the appropriate
options. You'll almost always want to select the first option,
Change one or more blank lines to <P>. Blank lines in text
files usually indicate separate paragraphs.
The second option concerns the creation of lists. If your
text file contains bulleted lists, you can automatically convert
them to HTML lists. Choose the type of list you'd like to create,
along with the character used in the text file to denote a list
item.
The second group of options deals with creating headings.
If your text file uses single lines of text to separate sections,
you can convert them to HTML headings. Select the type of HTML
heading you'd like to create. You can choose a separate heading
style for the very first line in your text file.
You can also leave the entire text file as it is by choosing
to convert it to preformatted text. This option also allows you
to choose the column width for the resulting HTML file.
You have the option of inserting a line break after each line.
This is a good idea if your text file contains a number of short
lines that should not be converted into paragraphs.
Select the files you'd like to convert. You can choose multiple
files by pressing the Ctrl key as you select each one. You can
also use wildcard characters to select multiple files. When you're
finished, click on the OK button.
Click on the Accept button to convert your text files to HTML.
The conversion happens almost instantly, and HotDog Professional
saves the converted files with file names similar to your original
text files, except with an .htm extension. By default, HotDog
Professional will save the new files in the program's main folder.
Open your new HTML files with either HotDog Professional or
Notepad and make any necessary manual changes, such as inserting
a title for the document. Save your changes when you are finished.
Microsoft provides an add-on for Word called Internet Assistant.
This powerful set of tools is the perfect vehicle for anyone familiar
with Word who also wants to publish HTML documents. Internet Assistant
handles all of the HTML coding, allowing you to spend your effort
on the documents themselves, and not the coding necessary to make
them visible on the Web.
Internet Assistant is a full-featured HTML editor, although
it does not support all of the HTML 3.2 standards. However, it's
a free add-on for Word users, and you may decide to use it as
your regular HTML editor.
Internet Assistant's built-in Web browser is crude but effective.
If you have a working Internet connection, you can browse the
Web from inside Word. Just switch to Web Browse view, and you'll
be able to test out all the links you have placed in your HTML
document.
Change the file type in the Save as type list box to HTML.
Word will automatically change the file extension to .htm. Click
on the Save button to save the file.
Word will automatically convert your document to HTML, adding
all of the necessary tags. This process takes only a few seconds,
and when it's finished, you'll have a complete HTML document.
If you switch back to HTML Edit mode from the View menu, you
can insert additional HTML codes and markup by selecting these
options from the Insert menu.
When you're finished editing your document, save it once more
as an HTML file.