What does "document type" mean?


#1

what does document type means?


FAQ: Learn HTML Elements - Common HTML Elements - Preparing for HTML
FAQ: Learn HTML Elements - Common HTML Elements - Preparing for HTML
#2

Document type means you are telling to the browser what type of document you are submitting to the browser.Reason for using document type in the beginning of the hmtl script is while running that script in the browser it will understand that it is an html document,so the browser will arrange the document in hmtl formate and run rest of the script properly and the it gives output.


#3

Document type is simply telling the computer what file this is. This can be html file, text file, php file and so on.


#4

The Document Type states what type of code you are using. EX.

<!DOCTYPE html>

Shows that you are using HTML5