HTML What is <!DOCTYPE html> and Why is it at the Top of Every HTML Page? <!DOCTYPE html> is a declaration that tells the browser what version of HTML the page is written in and how it should interpret the HTML code.