View Full Version : doctype meaning

02-10-2004, 06:52 PM
Advise what this line does:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

and how does it effect JavaScript? I had JavaScript menus that wouldnt work correctly in Netscape 7 until I eliminated this line.

02-10-2004, 07:48 PM
It tells the browser how to interpret your page, what standard the page follow, if it is removed browsers reverts to how the good old interpret and hope for the best.

for better explanation.