Gianni
|
| Posted: 09/25/2002, 8:36 AM |
|
Hi,
I'm using CC 2.0.5+JSP with templates.
I'd like to add the !DOCTYPE declaration to generated pages in order to check accessibility based on W3C recommendations.
Unfortunately [Page properties]->[Custom head section] doesn't allow to write directives before the <HEAD> tag, so I have to manually edit ALL the generated templates. If templates have to be re-generated, obviously I have to re-do all the work.
Is there a better solution?
Thanks everybody.
Gianni
|
|
|
 |
Timothy
|
| Posted: 09/30/2002, 4:26 AM |
|
Gianni,
you can add the declaration inside <head> section for all the pages inside CC project (Site Properties->General tab->Default <head> section), otherwise the only way is to edit .html files.
|
|
|
 |
Gianni
|
| Posted: 09/30/2002, 5:01 AM |
|
Sorry...
I should have written <HTML> in place of <HEAD>. Infact a final template shoud look like:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
...
</HEAD>
...
As far as I can tell, there's no way to have CC write the DOCTYPE directive before the <HTML> tag.
|
|
|
 |
|