Chapter 26Style Sheets

Introduction

In early versions of browsers, web page authors had limited control over the page style. They could not, for example, specify the left margin for their pages. The World Wide Web Consortium (W3C) solved this problem by introducing standards for defining stylistic attributes for web pages. Cascading style sheets are now a common aspect of many web pages.

Using style sheets, you can specify many such attributes, ranging from text color, margins, and element alignments to font styles and sizes.

Netscape Communicator supports two types of style sheets: cascading style sheets (CSS) and JavaScript-accessible style sheets. The W3C has defined a set of properties and syntax for CSS, and its proposal is posted at http://www.w3.org/pub/WWW/TR/PR-CSS1 ...

Get Advanced Javascript, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.