Added ability for automatically pre-setting approrpiate attributes for the html tag based on currently set doctype.