Sample

Disponible uniquement sur Etudier
  • Pages : 5 (1228 mots )
  • Téléchargement(s) : 0
  • Publié le : 6 avril 2011
Lire le document complet
Aperçu du document
Cascading Style Sheets
DESIGNING FOR THE WEB

Third Edition

SAMPLE DOCUMENT

Cascading Style Sheets

DESIGNING FOR THE WEB

Third Edition

Cascading Style Sheets

DESIGNING FOR THE WEB

Third Edition

Håkon Wium Lie Bert Bos

Copyright © 2005 Håkon Wium Lie and Bert Bos

Table of Contents

°°°°°

Table of Contents
Table ofContents.................................................................... vii Preface...................................................................................... viii Chapter 1 The Web and HTML ..................................................................1 The Web ..............................................................................................................1 Development of theWeb............................................................................2 Adding images .................................................................................................2 Chapter 2 CSS ................................................................................................3 Rules and Style Sheets .......................................................................................3 Index.............................................................................................5

vii

°°°°°

Preface
This is a sample document whose purpose is to show how CSS can be used to print a book. To make the document more lively, excerpts from the third edition of “Cascading Style Sheets — designing for tbe Web” has been included.1 The excerpts have been selected for their examplevalues and they appear, in this document, out of order. The PDF version of this document is produced directly from the HTML and CSS sources by the Prince formatter. We encourage you to reuse the structure, markup and style sheet of this sample document. In your own book, however, you need to provide the content yourself. Håkon Wium Lie & Bert Bos Oslo/Antibes November 2005

1. That book wasproduced using the methods described in the document, and it was published by Addison-Wesley in 2005.

viii

Chapter 1: The Web and HTML

Chapter 1

The Web and HTML
The box “CSS Specifications” on page 4 lists the different CSS specifications.

Cascading Style Sheets (CSS) represent a major breakthrough in how Web-page designers work by expanding their ability to control the appearance ofWeb pages, which are the documents that people publish on the Web. For the first few years after the World Wide Web (the Web) was created in 1990, people who wanted to put pages on the Web had little control over what those pages looked like. In the beginning, authors could only specify structural aspects of their pages (for example, that some piece of text would be a heading or some other piecewould be straight text). Also, there were ways to make text bold or italic, among a few other effects, but that's where their control ended.

THE WEB
The Web is a vast collection of documents on the Internet that are linked together via hyperlinks. The Internet consists of millions of computers worldwide that communicate electronically. A hyperlink is a predefined link between two documents. Thehyperlinks allow a user to access documents on various Web servers without concern for where they are located. A Web server is a computer on the Internet that serves out Web pages on request. From a document on a Web server in California, the user is just one mouse click away from a document that is stored, perhaps, on a Web server in France. Hyperlinks are integral to the Web. Without them,there would be no Web.

1

Cascading Style Sheets
Development of the Web The Web was invented around 1990 by Tim Berners-Lee with Robert Cailliau as a close ally. Both of them were then working at CERN, which is the European Laboratory for Particle Physics. Tim is a graduate of Oxford University and a long-time computer and software expert, and is now the director of the World Wide Web...
tracking img