
Web designers use style sheets to exert increased control over HTML elements and their appearance on web pages. They provide designers with solutions to many design issues and an easy way to impose the feel they want on a web site.
Let's say you have decided that all headings in your web page should be formatted in
red, have an
Arial font face, and be aligned to the
right. You do not have to use the font-color, font-face, or align attributes for each individual heading tag on your page. Using your style sheet, you can declare these attribute values once for all heading tags.

Let's look at an example of an obvious advantage of using style sheets. Let's say you have declared in your style sheet that the font color of text within
<h1> tags is
blue. However, you reconsider your design and decide that all text within
<h1> tags should be reformatted in green. To solve this problem using the style sheet, you change the font-color attribute value from
blue to
green. However, if this situation had occurred on a site that didn't use style sheets, you would need to change the attributes of each individual
<h1> tag in the site.