Home / Articles / CSS Basics

CSS Basics

Chapter Description

Familiarize yourself with CSS and learn CSS (cascading style sheets) terms and terminology, the difference between HTML and CSS formatting, different methods for writing CSS rules and markup, how the cascade, inheritance, descendant, and specificity theories affect the way browsers apply CSS formatting, and new features and capabilities of CSS3.

What is CSS?

HTML was never intended to be a design medium. Other than allowing for bold and italic, version 1 lacked a standardized way to load fonts or even format text. Formatting commands were added along the way—up to version 3 of HTML—to address these limitations, but these changes still weren’t enough. Designers resorted to various tricks to produce the desired results. For example, they used HTML tables to simulate multicolumn and complex layouts for text and graphics, and they used images when they wanted to display typefaces other than Times or Helvetica.

HTML-based formatting was so misguided a concept that it was deprecated from the language less than a year after it was formally adopted in favor of cascading style sheets (CSS). CSS avoids all the problems of HTML formatting while saving time and money too. Using CSS lets you strip the HTML code down to its essential content and structure and then apply the formatting separately so that you can more easily tailor the webpage to specific devices and applications.

2. HTML vs. CSS formatting | Next Section

There are currently no related articles. Please check back later.