What is the purpose of putting HTML code like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Code (markup): at the top of a webpage? Why not just use <html>?
That particular header has a number of uses outside of just displaying a web page. DOCTYPE is used by a validator such as the one at W3C to ensure that your page is written to that standard. Without declaring the DOCTYPE a validator will be unable to give you automated feedback on the validity of your site. Additionally, encoding the page properly will tell most browsers how to render it for other regions in the world.