Forum Moderators: open
W3C validation says that it is not valid XHTML 1.0. I use strict XHTML like this:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Is there a good alternative to have the same type of result? Maybe with CSS?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> If you want to use a strict doctype, then you need to accept the constraints of the specification. It's your choice - an invalid XHTML Strict page, a valid XHTML Strict page full of javascript hacks whose only meaning is to pass the validation process, or a clean, valid XHTML Transitional page.