Using CSS without HTML · Mathias Bynens

When a browser renders our example document, it notices the <html><head> and <body> elements are missing from the source, and — wait for it — automatically generates them. You can confirm this by opening the demo page and inspecting the generated source using Firebug, the Web Inspector, or Opera Dragonfly.

Because these elements are implied, they can also be styled through CSS, regardless of whether they occur in the source code or not. 

Via @snookca/Jonathan Snook’s Delicious feed.

Notes

  1. journo-geekery posted this