Since when did HTML make this change to itself?


I learned HTML for the first time in 2007. Back then, I borrowed a book from the library on HTML and Cascading Style Sheets, and one thing I remembered was that the HTML document began with



Nowadays, we have to begin with

<!DOCTYPE html>


Since when did HTML make this change? Why?



Do a google search
== discussions / opinions ==
html since when is doctype used


<!DOCTYPE html> has been around for a while, could be the book decided to skip it. Maybe, in 2007 you would have needed this:


for doctype deceleration.


You don't need two </html>s at the end as the doctype tag doesn't need closing.