Color: h1 Font Font h1
Color: h1 Font Font h1
</font></h1>
Using CSS, the same element can be coded using style properties instead of HTML
presentational attributes:
The advantages of this may not be immediately clear but the power of CSS becomes more
apparent when the style properties are placed in an internal style element or, even better, an
external CSS file. For example, suppose the document contains the style element:
<style>
h1 {
color: red;
}
</style>
All h1 elements in the document will then automatically become red without requiring any
explicit code. If the author later wanted to make h1 elements blue instead, this could be done by
changing the style element to:
<style>
h1 {
color: blue;
}
</style>
rather than by laboriously going through the document and changing the color for each
individual h1 element.
The styles can also be placed in an external CSS file, as described below, and loaded using
syntax similar to: