To apply a style to a phrase in an HTML file

Microsoft HTML Help

To apply a style to a phrase in an HTML file

  1. In the HTML file, select the phrase you want to apply special formatting to.
  2. Add the <SPAN> tag and the <STYLE> tag attributes you want. For example:
    <SPAN STYLE= "{
    font-family: times;
    font-size: 12pt; 
    background: yellow; 
    color: red;
    }">
    Span this phrase</SPAN>
    In this example, the font, and background <STYLE> tag attributes will be applied to the text Span this phrase.

Note

  • This allows a help author to format individual phrases, words, or letters.
Home page link About using cascading style sheets