### 22.7 Defining text colors for HTML

The best way to adjust text colors for HTML output is to assign colors to output formats; see:

§7.6.5 Specifying inline properties for paragraph and character formats

§7.6.6 Specifying block properties for paragraph formats

§8.3 Defining shading format components

Those methods use CSS. Consider using the method described here only if you cannot use CSS.

In this section:

§22.7.1 Numbering and defining text colors

§22.7.2 Using Web-safe colors

Previous Topic: 22.6.4 Preventing adjacent <pre> elements from merging

Next Topic: 22.7.1 Numbering and defining text colors

Parent Topic: 22. Converting to HTML/XHTML

Sibling Topics:

22.1 Deciding which type of output to produce

22.2 Setting up an HTML project

22.3 Including starting code and entity references

22.4 Supplying values for the <head> element

22.5 Specifying HTML <body> attributes

22.6 Specifying document-wide properties for HTML

22.8 Importing HTML files as insets

22.9 Providing hover text for links in HTML

22.10 Generating XHTML for Confluence 4.x

22.11 Exporting content for database input

22.12 Specifying a starting topic for HTML or XHTML

22.13 Using framesets

22.14 Passing W3C validation tests