Switch to full style
HTML code examples
Post a reply

The reason of using DOCTYPE

Wed Feb 01, 2012 11:17 pm

Usage of the DOCTYPE tag is the define the version of HTML you are using so the browsers can parse it correctly. DOCTYPE is not a HTML tag, it is a document type definition (DTD).
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"
>
<
html>
<
head>
<
title>Using DOCTYPE to define the html version </title>
</
head>
<
body>
<
h1>Your header </h1>
<
hr>
<
p>Your paragraph takes place here</p>
</
body>
</
html>
 




Post a reply
  Related Posts  to : The reason of using DOCTYPE
 Fix of reason code “7″ SQLCODE=-668 SQLSTATE=57016     -  

Topic Tags

HTML Meta