Special Formatting Codes for Text

Codes, or "tags," for bold or italic text can be created by Dreamweaver. Select the text with the mouse or shift-cursor, then select B (for bold) or I (for italic) from the Properties Tool Bar. You can see the effect on your text in the Dreamweaver window.

You may want to underline text, but there is nothing in the Properties Tool Bar to help you do this. To underline, select the text, then go to the Text>Style menus at the top of the screen and select Underline. Some other text formatting, like strikethrough, are also available from this menu.

Some special formatting "tags", like for superscripts and subscripts, are not supported by Dreamweaver 2 and must be entered manually in the HTML editing window or by using the SUP and SUB Objects that come with the Dreamweaver 2 Bible or from the Dreamweaver web site. With Arial font and Font Size 4 (which I normally use) the superscripts and subscripts seem thinner than the rest of the text. They look more normal if made Bold.

To enter the codes manually, type your text, including the items which you intend to become superscripts or subscripts, then go to the HTML Source Editor (click on the <> at the bottom right of the screen) and surround superscripts with a <sup> and a</sup> and subscripts with <sub> and </sub>. For example:

H2O would appear as H<sub>2</sub>O

x3 = y1/4 would appear as x<sup>3</sup> = y<sup>1/4</sup>

Using the SUB and SUP Objects works best after the regular text is entered (without the characters to be superscripted or subscripted. So type all of your text, then go back and Insert the SUP of SUB Objects. (It doesn't seem to work right if you type part of your text, stop to insert the SUP or SOB Object, then continue typing.) When you hit Enter from the Object window, the character entered is highlighted. This is a good time to Bold the characters.

Note: In some older versions of Dreamweaver, the superscripts or subscripts will only show up when the file is viewed with the browser.