When you start out writing HTML, most training classes, books, and Web pages will tell you you need a "text" editor. But what exactly is a text editor? Many people assume that if you can read letters on your computer, that means that you are reading text. For the purposes of writing HTML, this is not always the case.
Types of Computer Text
Text on a computer can be formatted in many different ways, some of the best known types of text are:
- Notepad or TextEdit files
- Word documents
- Acrobat files (PDF)
- Graphics (that include text)
- Web pages (or HTML)
Notepad or TextEdit Files
Notepad (for Windows) and TextEdit (for Macintosh) are programs that write standard text that the computer sees as text. These programs are not terribly complicated, with few features. You can't change the look and feel of your text with these programs.
You are writing, essentially, ASCII text, which is unformatted letters that the computer reads. You can use Notepad or TextEdit to write your Web pages. On the PC, Notepad files are written with the .TXT extension. On the Mac, TextEdit files have the TextEdit icon and can have the .TXT extension.
Word Documents
Word documents and documents written by other word processors are more complicated. You have the option to change the look and feel of your text, such as the font color and face, the leading of the lines, paragraph and line breaks, and much more. You can even embed graphics into Word documents.
When you write a Word document, you are writing text with code embedded in the document. These hidden codes tell the computer where you want your font to change color, how to embed the graphic, and what font face to use for the entire document. The only way to use Word to write your Web documents is to either save the document as text (and write out all the HTML) or use the built-in feature that Word now has to save as a Web page. This results in either HTML or XML depending upon your version of Word. On the PC, Word documents have the extension .DOC. On the Mac, Word documents use the Word icon, and may have the .DOC extension.
Acrobat Files
Adobe Acrobat files are written in several ways. You can use the Acrobat program to build your files directly, but the most common way is to layout your document in a layout program or word processor and then print the document to the Acrobat file. Acrobat is a proprietary document layout format. To the computer, the PDF files will seem like images. You can't do anything but look at them. Only if you have the editing program, Adobe Acrobat and Distiller, can you edit them.
The text in PDF files, for the computer's purposes, has been changed into something not text. The entire document is encoded into a PDF file that can be read by Acrobat Reader, and edited by Acrobat. You cannot write HTML files with Adobe Acrobat. PDF files have the .PDF extension and have the Acrobat icon.
Graphics that Include Text
Graphics can go on Web pages, and you can even make graphics that include (or are) text. But these are not Web pages. Graphics are built in a graphics program such as Photoshop or Paint Shop Pro. Once text is put in an image, the computer can no longer distiguish that text as text. It is only part of the image. There are many extensions that are graphic files, but the most common ones on the Web are .GIF and .JPG.
HTML Files
HTML files are, like Notepad and TextEdit files, straight ASCII text. The main difference between HTML and TXT files is that you add special HTML codes in < and > brackets to call them out to the computer. In a sense, you are writing a lot of the special codes and information that Word documents write, but the information is not hidden.
You can write HTML files with many different programs. There are programs that look like Word and hide all the HTML tags from you. There are other programs that leave them in, but color code them, and many different combinations. HTML is how you write your Web pages. An HTML file has the extension .HTML or .HTM and usually has a Web browser icon (IE or Netscape, generally).
To write HTML, you need to use either Notepad or TextEdit (text editors) or an HTML editor.
HTML and Text Editors
When you write a Web page, you have to use a text based editor. What you should really read this as is an editor that is meant to create either ASCII text or HTML. If you write your Web page in Word, Word will automatically save the document as a .DOC file, and this is not text as the computer sees it. This is, as I mentioned above, textual characters with special formatting codes hidden in the document to tell the computer how to print and display the page. (Note, Word now has an option to save files as Web pages, which puts them into either HTML or XML depending upon the version of Word you have.)

