Quirks mode is controlled by the doctype. This is what an HTML5 doctype looks like and should put you in Standards mode:
<!DOCTYPE html>
The wikipedia has a nice chart showing what does and does not trigger quirks mode: http://en.wikipedia.org/wiki/Quirks_mode#Comparison_of_document_types