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 ...

Get Web Technology: Theory and Practice 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.