What You’ll Learn in This Hour
• Separating style from content
• The DOM style property
• Retrieving styles
• Setting styles
• Accessing classes using className
• The DOM styleSheet object
• Changing the mouse cursor
In the early days of the World Wide Web, pages were all about their text content. Early browsers had rudimentary support for graphic effects—some didn’t even support images. Styling a web page was largely a matter of using the few style-related attributes and tags allowed by the early incarnations of HTML.
Things improved markedly with the introduction of browser support for Cascading Style Sheets (CSS), which allowed the styling of a page ...