Doctype again – and color names

When editing Questionmark Perception’s quiz templates, you will quickly find that you must not use the # symbol in hex color names, since Perception recognizes it as a comment.

In redoing a complicated quiz template I added a doctype, as shown below. The colors stopped working. It turns out if the doctype is set to transitional, the # symbol must be used or color names are not recognized. Solution – go back to and all was well again. Maybe it will break in a few years when they upgrade the browsers to IE 12, but I doubt we’ll be using this quiz at that time.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">