Rework the doctype toggles at @afcowie's suggestion, improving the semantics