Getting to Valid XHTML – Um, Help?

If my site has one or two minor validation errors, I usually don’t get too bent out of shape over it. But as of this writing I have 32 errors, all (I think) being driven by error number one:

Error Line 1 column 54: invalid formal public identifier “-//W3C/DTD XHTML 1.0 Strict//EN”: no SPACE after public text class. <!DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Strict//EN ”

The odd thing is, when I look at the code of this page, there is no space!

<!DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Strict//EN”


<html lang=”en” xml:lang=”en” dir=”ltr”>

Can anyone help me out here? It’s probably something small I am missing.

2 replies on “Getting to Valid XHTML – Um, Help?”

  1. Your missing a slash after W3C and before DTD there should be 2 forward slashes and you only have 1.

    You have this:
    !DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Strict//EN”

    Should be this:
    !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”

Comments are closed.