Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
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>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )