HTML5 Doctype
HTML
What is <!DOCTYPE html>
in HTML?
<!DOCTYPE html>
is a declaration at the very top of an HTML document.It tells the browser what version of HTML the page is written in, so the browser knows how to render it correctly.
It is not an HTML tag, but an instruction to the browser.
- HTML5 Code:
- HTML4 Code: