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

To Apply a Style to One Element in an HTML File


Microsoft Corporation

Updated June 10, 1999

  1. In the HTML file, position your cursor at the location where you want to apply the style.
  2. Using the <STYLE> tag, add the style to the element. For example:

    <p STYLE= "
    font-family: times; 
    font-size: 12pt
    "> paragraph text ...</p>
    
  3. where the font and size <STYLE> tag attributes are applied to the text between the <P> start and end tags.

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.