Export (0) Print
Expand All
Expand Minimize

To include a style sheet in an HTML file

  • Open each HTML file you want to contain the style sheet, and add the style information between the <HEAD> start and end tags using the <STYLE> tag.

Here is an example of a style sheet created this way:


<STYLE>
BODY {
font-family: times, serif;
color: black;
margin-left: 10%;
margin-right: 10%;
}
A:link {
color: black;
text-decoration: underline;
}
A:visited {
color: black;
text-decoration: none;
}
</STYLE>

Related topics

About Using Cascading Style Sheets

 

 

Send comments about this topic to Microsoft

Build date: 4/14/2012

Community Additions

ADD
Show:
© 2014 Microsoft