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

Home page link About using cascading style sheets