Tags
HTML , XHTML
Asked 8 years ago
4 Oct 2016
Views 1254
ajamil

ajamil posted

what is use of <!DOCTYPE>

i mostly used <DOCTYPE> tag in html page startup ,but never know what is use of it ,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


why we use <!DOCTYPE> ??what if we dont use <!DOCTYPE> ?

little curious !!!!
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

<!DOCTYPE> means DOC TYPE DEFINITION
<!DOCTYPE html means its html document
PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" says to browser that public identifier (FPI) ‘‘W3C XHTML 1.0 Strict English’’
and at last \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" is the url where we can find full DTD .
Post Answer