logoalt Hacker News

skobesyesterday at 7:27 PM0 repliesview on HN

Omitting <body> can lead to weird surprises. I once had some JavaScript mysteriously breaking because document.body was null during inline execution.

Since then I always write <body> explicitly even though it is optional.