The first DOCTYPE will render your page in almost standards mode:
"Almost standards" mode rendering matches "standards" mode in all details except for one. The layout of images inside table cells is handled the same way "quirks" mode operates.
The second DOCTYPE will render your page in standards mode.