Want to know DOCTYPE TAG usage in html

While using html the first tag we often use is <!DOCTYPE HTML> . I mistakenly removed this tag and starts with <html> tag. The web page still worked fine and there was no problem with it.Anyone can tell me what is the use of doctype tag when there is no problem in using it?
