wwwSchools
PREV: Introduction to HTML

2. The DOCTYPE

NEXT: The HTML element structure


1. What is DOCTYPE? How to add it?
ANS:- The DOCTYPE tells the browser that which version of HTML we are using and it should be on the top of the HTML code to browser to read it first. If it would not be at the top or in the whole HTML code, the browser has to guess and sometimes browser fails to guess so it can't load the page.
How to add DOCTYPE is given below:-

<!DOCTYPE html>