Click to return to the HTML Help home page    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

To Apply a Style to a Phrase in an HTML File


Microsoft Corporation

Updated June 10, 1999

  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

Home page link About using cascading style sheets
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.