Updated: 2003-09-01; 1:35:51 PM
Doug's Inner Net News
    News and views from a software developer's perspective

daily link  Friday, August 22, 2003

Separation of Content and Presentation

We hear this all the time from those who would instruct us in the proper use of mark-up languages: separation of content and presentation.

Now, I understand the argument, and I agree that in many cases separation of content and presentation is good. In many cases, I prefer separation of content and presentation, because then I can fiddle with the presentation without having to change a lot of tags.

On the other hand, I think that the campaign to rid the world of mixed content and presentation is a lot like the campaign to rid the world of goto statements. Sometimes the use of goto is the cleanest way to write a section of code. goto is not always evil.

The mixing of content and presentation is not always a bad thing either. Separation of content and presentation requires a structured document. Otherwise, how would the content be meaningfully interpreted and the presentation applied? But we often write documents that have no formal structure. Two good examples are email and weblogs.

 
8:43:49 AM  permalink 


Is it just me? Or is anyone else noticing that amateur web pages are using centered paragraphs more frequently?

These centered paragraphs have both ragged left and ragged right margins.

Is it supposed to be fancier? Is that why they use centered paragraphs?

This reminds me of how we used to see a lot of email messages that were written in all capital letters.

 
8:09:32 AM  permalink 


Copyright 2003 © Doug Sauder