2004-10-06

HTML without style

From Eric Meyer: Really Undoing html.css. He describes how to turn off all the default CSS styling in your web browser. Since it involves messing with files on your hard drive, it's not exactly something you can use in your website template, but it looks like a good way to learn what assumptions the authors of our browsers (and, by extension, we who use them) make about how our HTML is presented. It makes me nostalgic for the days of disassembling executable files to peek at the machine code, back when people still knew what those terms meant. :-)

Update. Eric has a followup article called Fractionally Restoring html.css that describes the minimal reasonable stylesheet (setting the display: block property on block elements, for instance). He also floats the idea of having a copy of your favorite browser with minimal styles, and testing your websites to ensure that the styling is coming from CSS and not from markup (in other words, embedded in the HTML).

0 comments: