Doctype

Use GitHub to post feature requests for phpwcms.
Locked
Pieter
Posts: 54
Joined: Sat 20. Mar 2004, 18:08

Doctype

Post by Pieter »

An interesting feature might be to be able to select the doctype
I created a layout using:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

However, phpwcms uses:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Which causes the site to be rendered a little different (and a little less nice).
This could be remedied if I could choose the doctype (now I have to change the program code).
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

The doctype fits to the output of phpwcms which is (or should be ;)) W3C HTML 4.01 valid.

The day phpwcms will produce XHTML-valid code, the doctype will be changed, too.

If we changed the doctype to XHTML today, the pages would not be valid any more.

I think, that is the point...

(Just to point something out: I also prefer XHTML, but I like even more W3C validity ;))
Locked