Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
To apply a style to one element in an HTML file
Collapse the table of content
Expand the table of content

To apply a style to one element in an HTML file

In the HTML file, position your cursor at the location where you want to apply the style.

Using the <STYLE> tag, add the style to the element. For example:


<p STYLE= "
font-family: times;
font-size: 12pt
> paragraph text ...</p>

where the font and size <STYLE> tag attributes are applied to the text between the <P> start and end tags.

Note  Use this method only if you want to change one element in a file without modifying the style sheet.

Related topics

About Using Cascading Style Sheets

 

 

Send comments about this topic to Microsoft

Build date: 4/14/2012

Community Additions

ADD
Show:
© 2015 Microsoft