Fork me on GitHub

A different kind of sadomasochist


I just read Programmers and Sadomasochism and my first reaction was more along the lines of:

“Uh… align=right? Give that div a css-class and style it up using text-align:right in CSS.”

I guess I am a different kind of sadomasochist.

About “broken” html

Humans write HTML. The fact that browsers are lenient about mistakes is what made the web succeed (the web as based on http and html). Without it we would never have reached the break-even point where there is just too much useful things contributed to the web to decide to not publish more to it.

If the web had instead been built on a stricter markup language, lets call it SGML. Then that format would had just been a historical accident, it had quickly been replaced with a simpler alternative that works better In The Real World™.


As a web developer, you should of course validate your html pages with the w3 html validator. I would avoid the XHTML doctypes and go for the HTML ones (actually, the transitional/loose one):


  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"

The advantages of using a doctype are two:


I dont much like the use of XML for data-exchange either. The format doesnt even have integers, just text required to parse to an integer. How lame is that in data exchange!?