Page 1 of 1

Web page Create: 'target' attrib needs Transitional DOCTYPE

Posted: Fri Apr 11, 2008 2:59 am
by Jambalaya
The "_Default - Frame" template (XnView 1.93.4) for thumb.html declares a strict HTML 4.01 DOCTYPE that is incompatible with its use of the attribute 'target' for the 'A' elements it generates. (Try running a created thumb.html through the W3C validator at <http://validator.w3.org/>.)

What's needed here instead is an HTML 4.01 Transitional DOCTYPE (which allows the 'target' attrib) declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Re: Web page Create: 'target' attrib needs Transitional DOCT

Posted: Fri Apr 11, 2008 8:55 pm
by helmut
Jambalaya wrote:The "_Default - Frame" template (XnView 1.93.4) for thumb.html declares a strict HTML 4.01 DOCTYPE that is incompatible with its use of the attribute 'target' for the 'A' elements it generates. (Try running a created thumb.html through the W3C validator at <http://validator.w3.org/>.)

What's needed here instead is an HTML 4.01 Transitional DOCTYPE (which allows the 'target' attrib) declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Thank you for the hint. Could you please send a corrected template to Pierre with a link to this forum topic? Thank you!