Hacker News new | comments | show | ask | jobs | submit login

Forgetting to use a DOCTYPE is a bad idea, since it throws most browsers in to "quirks" mode meaning they won't render things according to the published standards. That makes debugging problems a whole lot harder since you first have to work out if the bug relates to quirks mode v.s. standards mode, and quirks mode problems are far less widely documented.

Given my html as described above, what would you recommend to use for the DOCTYPE line?

<!DOCTYPE html>

easy to remember and triggers standards mode

Looks redundant, but easy. Thanks.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact