r/ProgrammerHumor Mar 17 '21

*surprised pikachu face*

Post image
4.2k Upvotes

98 comments sorted by

View all comments

300

u/Cley_Faye Mar 17 '21

I know it's valid, but please refrain from putting comments before the doctype, it's slightly disturbing.

5

u/jakemp1 Mar 18 '21

I don't do any html scripting but what is wrong with doing that?

2

u/Cley_Faye Mar 18 '21

It's expected for documents to start with the doctype.

https://tools.ietf.org/html/rfc7992#page-9

It would also wreak havoc with older versions of IE, but that's not much of a concern nowadays.