— 21 November 2005 —

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”

“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

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

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

  • del.icio.us
  • Ma.gnolia
  • Reddit
  • SphereIt
  • StumbleUpon
  • Technorati
  • TwitThis
  • Facebook

2 Responses to Getting to Valid XHTML - Um, Help?

  1. commenter's gravatar.   Jeff Adams eloquently responded with:

    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”


  2. commenter's gravatar.   Matthew Oliphant eloquently responded with:

    Doh. I knew it was something my eyes were glossing over. Trouble is, before the redesign my site validated. bah.

    Thank you, Jeff. :)


Respond Eloquently Below

weewar.com

gamefly.com

Go buy some Threadless shirts.

shareable

Upcoming

Go buy some UX books.