Improving flexibility and protecting against worst-case scenarios with XHTML and CSS