Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk3 min

Core CSS: Part I — What DZone’s 2008 Refcard Teaches

DZone’s free 2008 CSS refcard introduces rules, inheritance, stylesheet types, and specificity. Here’s what remains useful and what needs a current reference.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

DZone’s Core CSS: Part I is a free, beginner-oriented introduction to CSS fundamentals: separating presentation from markup, writing rules, understanding inheritance, and resolving competing declarations. Molly Holzschlag’s Refcard #019 dates to June 2008, so use it to learn the basic ideas—not as a current guide to CSS specifications or browser support.

What the DZone refcard covers

The refcard is the first installment in a three-part Core CSS series. Its central idea remains useful: keep a document’s content and structure in HTML, and describe its visual presentation with CSS. A shared stylesheet can apply consistent design rules across multiple pages and make coordinated changes easier to maintain.

As an Amazon Associate I earn from qualifying purchases.

The card also introduces selectors, declarations, inheritance, stylesheet placement, the cascade, and specificity. It is available as a free PDF from DZone’s Core CSS: Part I page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How a CSS rule works

A CSS rule pairs a selector with a declaration block. The selector identifies the elements to which the declarations apply; each declaration names a property and its value. For example:

h1 { color: red; }

Here, h1 selects heading elements, while color: red; sets a property-value pair. Holzschlag summarizes the structure this way: “A CSS rule contains at least one selector and at least one declaration within a declaration block.”

What inheritance means

Some CSS properties pass from an element to its descendants when the descendants do not have an applicable value of their own. The refcard uses color as an example: text inside a colored parent can inherit that color. Many box-related properties, including margins and padding, do not work that way by default.

Inheritance is property-specific, not a general rule that every style flows down the document tree. For a particular property’s current behavior, consult the W3C CSS Cascading and Inheritance Level 5 specification.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How the browser chooses between declarations

When multiple declarations could apply to an element, the browser resolves them through the cascade. The outcome is not simply “the closest rule wins.” Cascade precedence, selector specificity, and—when competing declarations otherwise tie—source order all matter. The modern cascade also accounts for factors beyond selector specificity, so specificity alone is not a complete explanation.

Specificity is a way of comparing selectors when the cascade calls for that comparison. For a practical explanation and examples, see MDN’s specificity guide. The full modern framework is described in the W3C specification. The refcard’s treatment of !important is a simplified introduction rather than a complete account of modern cascade precedence.

Where styles can be written

The refcard distinguishes browser, user, and author styles, and introduces three common ways authors can provide CSS:

  • Inline: a style declaration attached directly to an HTML element.
  • Embedded: CSS placed in a document’s style block.
  • Linked: CSS kept in a separate stylesheet and connected to the document.

Holzschlag favors linked stylesheets for reuse and maintenance, and cautions against depending on inline and embedded styles in larger professional projects. That is useful introductory advice, not a rule that every modern project must follow; the right approach depends on a project’s architecture and needs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to use this 2008 resource today

Read the PDF for foundational concepts, then verify details that depend on current standards or browser behavior. Its discussion of CSS versions—including CSS 1, CSS 2.0, CSS 2.1, and the modular CSS 3 era—reflects the publication period, not a current status report. The same is true of its account of browser inconsistencies, hacks, and workarounds.

For a concise learning path, follow the concepts in this order:

  1. Understand the separation of HTML structure and CSS presentation.
  2. Read a rule as selector plus declaration block, then identify each property and value.
  3. Learn which properties inherit rather than assuming all properties do.
  4. When styles conflict, use current cascade and specificity references rather than relying on the refcard’s shortcuts.

The refcard is best treated as a historical primer that still introduces durable fundamentals. For current cascade behavior, pair it with the W3C specification and MDN’s specificity guide.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.