Closed Thread Icon

Preserved Topic: DOCTYPE compliance Pages that link to <a href="https://ozoneasylum.com/backlink?for=18181" title="Pages that link to Preserved Topic: DOCTYPE compliance" rel="nofollow" >Preserved Topic: DOCTYPE compliance\

 
Author Thread
Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-24-2002 19:19

Ugh....

I'm using
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

And validator is saying "Sorry, this document does not validate as HTML 4.0 Transitional". It does say a couple of things like "document.write('<small>' + txt + '</small></a></center>');" isn't correct because there is a closing small tag for an unopenen small tag.

Are things like that enough to not comply with DOCTYPE?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 01-24-2002 21:54

The problem is not with DOCTYPE tag. Validator says that the rest of your document isn't HTML 4 Transitional and therefore you shouldn't use that DOCTYPE... Anyway, to solve your problem with ending HTML tags in JavaScript code, modify it to look something like this:

document.write('<small>' + txt + '</sm' + 'all></' + 'a></cen' + 'ter>');


« BackwardsOnwards »

Show Forum Drop Down Menu