- From: Fred Bone <Fred.Bone@dial.pipex.com>
- Date: Fri, 05 Feb 2010 18:51:12 -0000
- To: html-tidy@w3.org
On 5 February 2010 at 10:45, Lee Passey said: > On 2/2/2010 9:13 PM, Brian Redmond wrote: > > > Can you please help me understand this error? > > > > Code entered to tidy: > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" > > "http://www.w3.org/TR/html14/strict.dtd"> <html lang="en"> <head> > > <title>Welcome to BrianRedmond.net</title> <meta > > http-equiv="content-type" content="text/html; /> <link rel="shortcut > > icon" href="http://www.brianredmond.net/favico/ricon.ico" /> </head> > > <body> <p>Coming soon...</p> </body> </html> > > > > Results repeatedly (even trying to modify from strict to transitional) > > in the following error: > > > > Info: Document content looks like HTML 4.01 Strict 0 warnings, 1 error > > were found! This document has errors that must be fixed before using > > HTML Tidy to generate a tidied up version. > > > > Did I not just set the DOCTYPE as HTML 4.01 Strict? I'm about ready to > > delete this widget. I thought it would be helpful, but it's just > > frustrating. > > There is a missing closing quotation mark at the end of > 'content="text/html;'. But what the OP posted was <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> which is *not* missing the closing quote. The error is the "/>" at the end of the META (or more precisely the "/"). The W3 validator refers to <http://www.cs.tut.fi/~jkorpela/html/empty.html> for further info. In particular, this advises > If you start using XHTML features like <hr />, don't expect your documents > to validate against an HTML DOCTYPE. They need to be converted to comply > with XHTML requirements as a whole, including the use of an XHTML DOCTYPE.
Received on Friday, 5 February 2010 18:52:22 UTC