O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3

Client-side—CSS

Chapter Objectives:

  • Bring out the philosophy of CSS

  • Learn CSS with a few examples

  • The concept of the Box model

  • Understand the rationale of CSS

It has been seen in the preceding sections as to how the browser interprets an HTML file and renders output. While doing so, it uses its default settings on how each tag is to be rendered. CSS (Cascading Style Sheets) is a mechanism to override the default settings and render the output as per specific styles required by the user.

CSS is actually a language that defines style constructs. Examples of style constructs include font, color, positioning, background themes, etc. CSS Styles can be applied directly within an HTML page. Alternatively, they can be written in a separate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required