Click to See Complete Forum and Search --> : What to chenge?This page is not Valid (no Doctype found)!


toplisek
05-19-2007, 04:22 AM
I have on my web site This page is not Valid (no Doctype found)!

Which html code is 100 % correct that there will be no error
for ,,This page is not Valid (no Doctype found)!'' in validation?

Need help

Charles
05-19-2007, 04:56 AM
If it's not a frame set then chance are good that you should be using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

drhowarddrfine
05-19-2007, 09:16 PM
The doctype is the set of rules you are telling the browser you are using to create your web page. All newly created pages should contain the doctype Charles shows above. Otherwise, browsers will assume it is 1998 and all heck breaks loose.

toplisek
05-23-2007, 09:24 AM
What about this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

ryanbutler
05-23-2007, 09:51 AM
That would work as well, as long as your mark-up was XHTML compliant.

Charles
05-23-2007, 10:56 AM
What about this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">As noted above, only use that if you are using XHTML. And only use XHTML if you really know what you are doing.

And we were supposed to stop using transitional DTDs sometime in the last century.