Dynamic Styles

This document includes a simple function that can change any style property. For example, you can change this paragraph's font size to small, normal, or large.

This paragraph's alignment can be changed to left, center, right, or justify. You can also change the font of this paragraph to sans-serif, serif, monospace, cursive, or fantasy. Try the links in different browsers and notice the different choice of fonts.

The weight of the heading at the top of the page can be set to normal, bold, bolder, or lighter. Notice that bold is the default setting for a heading, and the lighter value is the same as normal in the current versions of Netscape and Internet Explorer.