What does the doctype, <!doctype html>, do?

It tells the web browser which version of HTML a webpage usesIt defines the title for a webpage

<!doctype html> tells the web browser which version of HTML a webpage uses.