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.

Review answers

  • 1 No. HTML-based formatting was deprecated in 1997, when HTML 4 was adopted. Industry best practices recommend using CSS-based formatting instead.

  • 2 CSS imposes an imaginary box on each element. This box, and its content, can then be styled with borders, background colors and images, margins, padding, and other types of formatting.

  • 3 False. Even if you do nothing, many HTML elements feature default formatting.

  • 4 The four theories that affect CSS formatting are cascade, inheritance, descendant, and specificity.

  • 5 False. Many CSS3 features are already supported by modern browsers and can be used right now.

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