Inserting and Formatting Text > Formatting text overview

 

Formatting text overview

Formatting in Macromedia Dreamweaver is similar to using a standard word processor. Use the Text > Paragraph Format submenu or the Format drop-down menu in the Property inspector to set the default formatting style (Paragraph, Preformatted, Heading 1, Heading 2, and so on) for a block of text. To change the font, size, color, and alignment of selected text, use the Text menu or the Property inspector. To apply formatting such as bold, italic, code, underline, and so on, use the Text > Style submenu.

You can also combine several standard HTML tags to form a single style, called an HTML style. For example, you can manually apply HTML formatting using a combination of tags and attributes, and then save that formatting as an HTML style; it's stored in the HTML Styles panel. The next time you want to format text using that combination of HTML tags, you can simply select the saved style from the HTML Styles panel. HTML styles are supported by almost all Web browsers and save time over manually formatting text.

Another kind of style, called a CSS style (CSS stands for Cascading Style Sheets), lets you apply text and page formatting with the advantage of automatic updating. You can store CSS styles directly in the document or, for more power and flexibility, in an external style sheet. If you attach an external style sheet to several Web pages, all the pages automatically reflect any changes you make to the style sheet. To access CSS styles, use the CSS Style panel.

Manual HTML formatting and HTML styles apply formatting using standard HTML tags (such as b, font, and code) that are supported by all popular Web browsers. CSS styles define the formatting for all text in a particular class or redefine the formatting for a particular tag (such as h1, h2, p, or li). CSS is supported only by the following Web browsers—Netscape Navigator 4.0 and later and Microsoft Internet Explorer 4.0 and later.

You can use CSS styles, HTML styles, and manual HTML formatting within the same page. Manual HTML formatting overrides formatting applied by an HTML style or CSS style, so although it is labor intensive, it can be a convenient method of modifying formatting applied by HTML styles or CSS styles. Also, page-level CSS styles override external CSS styles. See Using CSS style sheets.